diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-17 12:59:39 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-17 12:59:39 +1300 |
commit | 29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8 (patch) | |
tree | 98507be26e58b4708cde9d6711c0a4bbd3cdbaef /src/org/traccar/web/shared | |
parent | 2a940c45a38cec42a6a85714f7941ee8613f48ee (diff) | |
download | trackermap-web-29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8.tar.gz trackermap-web-29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8.tar.bz2 trackermap-web-29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8.zip |
Archive default from value change
Diffstat (limited to 'src/org/traccar/web/shared')
-rw-r--r-- | src/org/traccar/web/shared/model/ApplicationSettings.java | 6 | ||||
-rw-r--r-- | src/org/traccar/web/shared/model/UserSettings.java | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/org/traccar/web/shared/model/ApplicationSettings.java b/src/org/traccar/web/shared/model/ApplicationSettings.java index ecbd1832..6f5bfe5c 100644 --- a/src/org/traccar/web/shared/model/ApplicationSettings.java +++ b/src/org/traccar/web/shared/model/ApplicationSettings.java @@ -3,6 +3,8 @@ package org.traccar.web.shared.model; import java.io.Serializable; import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; import javax.persistence.Table; @Entity @@ -11,6 +13,10 @@ public class ApplicationSettings implements Serializable { private static final long serialVersionUID = 1; + @Id + @GeneratedValue + private long id; + public ApplicationSettings() { registrationEnabled = true; } diff --git a/src/org/traccar/web/shared/model/UserSettings.java b/src/org/traccar/web/shared/model/UserSettings.java index f7163a16..3f6deeaf 100644 --- a/src/org/traccar/web/shared/model/UserSettings.java +++ b/src/org/traccar/web/shared/model/UserSettings.java @@ -5,6 +5,8 @@ import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; import javax.persistence.Table; @Entity @@ -13,6 +15,10 @@ public class UserSettings implements Serializable { private static final long serialVersionUID = 1; + @Id + @GeneratedValue + private long id; + public UserSettings() { speedUnit = SpeedUnit.knots; } |