| .. | .. |
|---|
| 13 | 13 | |
|---|
| 14 | 14 | import com.fasterxml.jackson.annotation.JsonAutoDetect; |
|---|
| 15 | 15 | import com.fasterxml.jackson.annotation.JsonBackReference; |
|---|
| 16 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
|---|
| 16 | 17 | import com.fasterxml.jackson.annotation.JsonInclude; |
|---|
| 17 | 18 | import com.fasterxml.jackson.annotation.JsonInclude.Include; |
|---|
| 18 | 19 | |
|---|
| .. | .. |
|---|
| 24 | 25 | @JsonInclude(Include.NON_NULL) |
|---|
| 25 | 26 | @Entity |
|---|
| 26 | 27 | @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") }) |
|---|
| 30 | 30 | public class LicenseTypeMetadata implements Serializable { |
|---|
| 31 | 31 | |
|---|
| 32 | | - private static final long serialVersionUID = 1L; |
|---|
| 32 | + private static final long serialVersionUID = 1L; |
|---|
| 33 | 33 | |
|---|
| 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; |
|---|
| 39 | 39 | |
|---|
| 40 | | - @Id |
|---|
| 41 | | - @Column(name = "\"key\"") |
|---|
| 42 | | - private String key; |
|---|
| 40 | + @Id |
|---|
| 41 | + @Column(name = "\"key\"") |
|---|
| 42 | + private String key; |
|---|
| 43 | 43 | |
|---|
| 44 | | - private String value; |
|---|
| 44 | + private String value; |
|---|
| 45 | 45 | |
|---|
| 46 | | - private boolean mandatory; |
|---|
| 46 | + private boolean mandatory; |
|---|
| 47 | 47 | |
|---|
| 48 | | - public LicenseType getLicenseType() { |
|---|
| 49 | | - return licenseType; |
|---|
| 50 | | - } |
|---|
| 48 | + public LicenseType getLicenseType() { |
|---|
| 49 | + return licenseType; |
|---|
| 50 | + } |
|---|
| 51 | 51 | |
|---|
| 52 | | - public void setLicenseType(LicenseType licenseType) { |
|---|
| 53 | | - this.licenseType = licenseType; |
|---|
| 54 | | - } |
|---|
| 52 | + public void setLicenseType(LicenseType licenseType) { |
|---|
| 53 | + this.licenseType = licenseType; |
|---|
| 54 | + } |
|---|
| 55 | 55 | |
|---|
| 56 | | - public String getValue() { |
|---|
| 57 | | - return value; |
|---|
| 58 | | - } |
|---|
| 56 | + public String getValue() { |
|---|
| 57 | + return value; |
|---|
| 58 | + } |
|---|
| 59 | 59 | |
|---|
| 60 | | - public void setValue(String value) { |
|---|
| 61 | | - this.value = value; |
|---|
| 62 | | - } |
|---|
| 60 | + public void setValue(String value) { |
|---|
| 61 | + this.value = value; |
|---|
| 62 | + } |
|---|
| 63 | 63 | |
|---|
| 64 | | - public String getKey() { |
|---|
| 65 | | - return key; |
|---|
| 66 | | - } |
|---|
| 64 | + public String getKey() { |
|---|
| 65 | + return key; |
|---|
| 66 | + } |
|---|
| 67 | 67 | |
|---|
| 68 | | - public void setKey(String key) { |
|---|
| 69 | | - this.key = key; |
|---|
| 70 | | - } |
|---|
| 68 | + public void setKey(String key) { |
|---|
| 69 | + this.key = key; |
|---|
| 70 | + } |
|---|
| 71 | 71 | |
|---|
| 72 | | - public boolean isMandatory() { |
|---|
| 73 | | - return mandatory; |
|---|
| 74 | | - } |
|---|
| 72 | + public boolean isMandatory() { |
|---|
| 73 | + return mandatory; |
|---|
| 74 | + } |
|---|
| 75 | 75 | |
|---|
| 76 | | - public void setMandatory(boolean mandatory) { |
|---|
| 77 | | - this.mandatory = mandatory; |
|---|
| 78 | | - } |
|---|
| 76 | + public void setMandatory(boolean mandatory) { |
|---|
| 77 | + this.mandatory = mandatory; |
|---|
| 78 | + } |
|---|
| 79 | 79 | } |
|---|