diff options
Diffstat (limited to 'src/org/traccar/web/shared/model/Device.java')
-rw-r--r-- | src/org/traccar/web/shared/model/Device.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/web/shared/model/Device.java b/src/org/traccar/web/shared/model/Device.java index d638046e..0b5fe30a 100644 --- a/src/org/traccar/web/shared/model/Device.java +++ b/src/org/traccar/web/shared/model/Device.java @@ -19,6 +19,7 @@ import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToOne; @@ -47,7 +48,7 @@ public class Device implements Serializable { return id; } - @OneToOne + @OneToOne(fetch = FetchType.EAGER) private Position latestPosition; public Position getLatestPosition() { |