diff options
Diffstat (limited to 'src/org/traccar/web/shared/model/User.java')
-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) { |