| .. | .. |
|---|
| 6 | 6 | |
|---|
| 7 | 7 | import javax.persistence.Column; |
|---|
| 8 | 8 | import javax.persistence.Entity; |
|---|
| 9 | +import javax.persistence.FetchType; |
|---|
| 9 | 10 | import javax.persistence.GeneratedValue; |
|---|
| 10 | 11 | import javax.persistence.Id; |
|---|
| 11 | 12 | import javax.persistence.NamedQueries; |
|---|
| .. | .. |
|---|
| 43 | 44 | |
|---|
| 44 | 45 | @JsonIgnore |
|---|
| 45 | 46 | // 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") |
|---|
| 47 | 48 | private Set<LicenseType> licenseTypes; |
|---|
| 48 | 49 | |
|---|
| 49 | 50 | public int getId() { |
|---|