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.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/org/traccar/web/shared/model/Device.java b/src/org/traccar/web/shared/model/Device.java
index df4afb4b..d638046e 100644
--- a/src/org/traccar/web/shared/model/Device.java
+++ b/src/org/traccar/web/shared/model/Device.java
@@ -21,6 +21,7 @@ import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
+import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@@ -46,6 +47,13 @@ public class Device implements Serializable {
return id;
}
+ @OneToOne
+ private Position latestPosition;
+
+ public Position getLatestPosition() {
+ return latestPosition;
+ }
+
@Column(unique = true)
private String uniqueId;