aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/shared/model/User.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-28 21:12:32 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-28 21:12:32 +1300
commit4f3cbf8afda8216f5fffa3f5288dea9779dc4881 (patch)
tree65101b9f1cb414d8006e3de2a0283599cfe8e246 /src/org/traccar/web/shared/model/User.java
parentd253ba26aaa3f94b154e93ab92c5779e8b98b81b (diff)
downloadtrackermap-web-4f3cbf8afda8216f5fffa3f5288dea9779dc4881.tar.gz
trackermap-web-4f3cbf8afda8216f5fffa3f5288dea9779dc4881.tar.bz2
trackermap-web-4f3cbf8afda8216f5fffa3f5288dea9779dc4881.zip
Temporary persistence workaround
Diffstat (limited to 'src/org/traccar/web/shared/model/User.java')
-rw-r--r--src/org/traccar/web/shared/model/User.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/web/shared/model/User.java b/src/org/traccar/web/shared/model/User.java
index ab11da4e..20adc12a 100644
--- a/src/org/traccar/web/shared/model/User.java
+++ b/src/org/traccar/web/shared/model/User.java
@@ -38,6 +38,7 @@ public class User implements Serializable, Cloneable {
private static final long serialVersionUID = 1;
public User() {
+ admin = false;
}
public User(User user) {
@@ -89,7 +90,7 @@ public class User implements Serializable, Cloneable {
}
@GwtTransient
- @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
+ @OneToMany(fetch = FetchType.EAGER)
private List<Device> devices = new LinkedList<Device>();
public void setDevices(List<Device> devices) {