diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-20 23:58:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-20 23:58:19 +1300 |
commit | b26e487f3c65808d349c7a53c0ea2a3981b61bac (patch) | |
tree | 57873f966be2953f3cb6b6f518cd44ea1adf720c /src/org/traccar/web/shared | |
parent | 6801698dfc9c99b34d7ed081ebcfbec4a8853868 (diff) | |
download | trackermap-web-b26e487f3c65808d349c7a53c0ea2a3981b61bac.tar.gz trackermap-web-b26e487f3c65808d349c7a53c0ea2a3981b61bac.tar.bz2 trackermap-web-b26e487f3c65808d349c7a53c0ea2a3981b61bac.zip |
Add user preferences
Diffstat (limited to 'src/org/traccar/web/shared')
-rw-r--r-- | src/org/traccar/web/shared/model/User.java | 3 |
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 77a17eef..f94f884e 100644 --- a/src/org/traccar/web/shared/model/User.java +++ b/src/org/traccar/web/shared/model/User.java @@ -19,6 +19,7 @@ import java.io.Serializable; import java.util.LinkedList; import java.util.List; +import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; @@ -97,7 +98,7 @@ public class User implements Serializable, Cloneable { return devices; } - @OneToOne + @OneToOne(cascade = CascadeType.ALL) private UserSettings userSettings; public void setUserSettings(UserSettings userSettings) { |