Roberto Sánchez
2014-01-21 d7a35d13cd691e6821f774b624e4203a404e67d9
securis/src/main/java/net/curisit/securis/db/Application.java
....@@ -6,6 +6,7 @@
66
77 import javax.persistence.Column;
88 import javax.persistence.Entity;
9
+import javax.persistence.FetchType;
910 import javax.persistence.GeneratedValue;
1011 import javax.persistence.Id;
1112 import javax.persistence.NamedQueries;
....@@ -43,7 +44,7 @@
4344
4445 @JsonIgnore
4546 // We don't include the referenced entities to limit the size of each row at the listing
46
- @OneToMany(mappedBy = "application")
47
+ @OneToMany(fetch = FetchType.LAZY, mappedBy = "application")
4748 private Set<LicenseType> licenseTypes;
4849
4950 public int getId() {