rsanchez
2014-10-01 182ddf022ebb56af558c82dd466b206097fea7c9
securis/src/main/java/net/curisit/securis/db/Application.java
....@@ -49,6 +49,12 @@
4949 @OneToMany(fetch = FetchType.LAZY, mappedBy = "application")
5050 private Set<LicenseType> licenseTypes;
5151
52
+ @JsonIgnore
53
+ // We don't include the referenced entities to limit the size of each row at
54
+ // the listing
55
+ @OneToMany(fetch = FetchType.LAZY, mappedBy = "application")
56
+ private Set<ApplicationMetadata> metadata;
57
+
5258 public int getId() {
5359 return id;
5460 }
....@@ -89,4 +95,12 @@
8995 this.licenseTypes = licenseTypes;
9096 }
9197
98
+ public Set<ApplicationMetadata> getApplicationMetadata() {
99
+ return metadata;
100
+ }
101
+
102
+ public void setApplicationMetadata(Set<ApplicationMetadata> metadata) {
103
+ this.metadata = metadata;
104
+ }
105
+
92106 }