aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/shared/model/User.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/shared/model/User.java')
-rw-r--r--src/org/traccar/web/shared/model/User.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/web/shared/model/User.java b/src/org/traccar/web/shared/model/User.java
index f94f884e..805c4a6c 100644
--- a/src/org/traccar/web/shared/model/User.java
+++ b/src/org/traccar/web/shared/model/User.java
@@ -87,7 +87,7 @@ public class User implements Serializable, Cloneable {
}
@GwtTransient
- @OneToMany(fetch = FetchType.EAGER)
+ @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
private List<Device> devices = new LinkedList<Device>();
public void setDevices(List<Device> devices) {