diff options
Diffstat (limited to 'src/org/traccar/web/shared/model')
-rw-r--r-- | src/org/traccar/web/shared/model/Device.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/web/shared/model/Device.java b/src/org/traccar/web/shared/model/Device.java index ede3c5f8..324bad83 100644 --- a/src/org/traccar/web/shared/model/Device.java +++ b/src/org/traccar/web/shared/model/Device.java @@ -49,7 +49,7 @@ public class Device implements Serializable { return id; } - @OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.REMOVE) + @OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL) private Position latestPosition; public Position getLatestPosition() { |