rsanchez
2017-03-20 1a0491f2462d2c309bd8e310b22c11019a79ce1e
securis/src/main/java/net/curisit/securis/db/LicenseTypeMetadata.java
....@@ -13,6 +13,7 @@
1313
1414 import com.fasterxml.jackson.annotation.JsonAutoDetect;
1515 import com.fasterxml.jackson.annotation.JsonBackReference;
16
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
1617 import com.fasterxml.jackson.annotation.JsonInclude;
1718 import com.fasterxml.jackson.annotation.JsonInclude.Include;
1819
....@@ -24,56 +25,55 @@
2425 @JsonInclude(Include.NON_NULL)
2526 @Entity
2627 @Table(name = "licensetype_metadata")
27
-@NamedQueries({
28
- @NamedQuery(name = "list-licensetype-metadata", query = "SELECT a FROM LicenseTypeMetadata a where a.licenseType.id = :licenseTypeId")
29
-})
28
+@JsonIgnoreProperties(value = { "readonly" })
29
+@NamedQueries({ @NamedQuery(name = "list-licensetype-metadata", query = "SELECT a FROM LicenseTypeMetadata a where a.licenseType.id = :licenseTypeId") })
3030 public class LicenseTypeMetadata implements Serializable {
3131
32
- private static final long serialVersionUID = 1L;
32
+ private static final long serialVersionUID = 1L;
3333
34
- @Id
35
- @ManyToOne
36
- @JsonBackReference
37
- @JoinColumn(name = "license_type_id")
38
- private LicenseType licenseType;
34
+ @Id
35
+ @ManyToOne
36
+ @JsonBackReference
37
+ @JoinColumn(name = "license_type_id")
38
+ private LicenseType licenseType;
3939
40
- @Id
41
- @Column(name = "\"key\"")
42
- private String key;
40
+ @Id
41
+ @Column(name = "\"key\"")
42
+ private String key;
4343
44
- private String value;
44
+ private String value;
4545
46
- private boolean mandatory;
46
+ private boolean mandatory;
4747
48
- public LicenseType getLicenseType() {
49
- return licenseType;
50
- }
48
+ public LicenseType getLicenseType() {
49
+ return licenseType;
50
+ }
5151
52
- public void setLicenseType(LicenseType licenseType) {
53
- this.licenseType = licenseType;
54
- }
52
+ public void setLicenseType(LicenseType licenseType) {
53
+ this.licenseType = licenseType;
54
+ }
5555
56
- public String getValue() {
57
- return value;
58
- }
56
+ public String getValue() {
57
+ return value;
58
+ }
5959
60
- public void setValue(String value) {
61
- this.value = value;
62
- }
60
+ public void setValue(String value) {
61
+ this.value = value;
62
+ }
6363
64
- public String getKey() {
65
- return key;
66
- }
64
+ public String getKey() {
65
+ return key;
66
+ }
6767
68
- public void setKey(String key) {
69
- this.key = key;
70
- }
68
+ public void setKey(String key) {
69
+ this.key = key;
70
+ }
7171
72
- public boolean isMandatory() {
73
- return mandatory;
74
- }
72
+ public boolean isMandatory() {
73
+ return mandatory;
74
+ }
7575
76
- public void setMandatory(boolean mandatory) {
77
- this.mandatory = mandatory;
78
- }
76
+ public void setMandatory(boolean mandatory) {
77
+ this.mandatory = mandatory;
78
+ }
7979 }