aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/shared/model/Device.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/shared/model/Device.java')
-rw-r--r--src/org/traccar/web/shared/model/Device.java2
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() {