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 dcfd6b29..89bebc07 100644 --- a/src/org/traccar/web/shared/model/User.java +++ b/src/org/traccar/web/shared/model/User.java @@ -21,6 +21,7 @@ import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToMany; @@ -70,7 +71,7 @@ public class User implements Serializable, Cloneable { return password; } - @OneToMany + @OneToMany(fetch = FetchType.EAGER) private List<Device> devices = new LinkedList<Device>(); public List<Device> getDevices() { |