diff options
Diffstat (limited to 'src/org/traccar/web/shared/model/UserSettings.java')
-rw-r--r-- | src/org/traccar/web/shared/model/UserSettings.java | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |