| .. | .. |
|---|
| 12 | 12 | import javax.persistence.Table; |
|---|
| 13 | 13 | |
|---|
| 14 | 14 | import com.fasterxml.jackson.annotation.JsonAutoDetect; |
|---|
| 15 | +import com.fasterxml.jackson.annotation.JsonBackReference; |
|---|
| 15 | 16 | import com.fasterxml.jackson.annotation.JsonIgnore; |
|---|
| 16 | 17 | import com.fasterxml.jackson.annotation.JsonInclude; |
|---|
| 17 | 18 | import com.fasterxml.jackson.annotation.JsonInclude.Include; |
|---|
| 18 | | -import com.fasterxml.jackson.annotation.JsonProperty; |
|---|
| 19 | 19 | |
|---|
| 20 | 20 | /** |
|---|
| 21 | 21 | * Entity implementation class for Entity: licensetype_metadata |
|---|
| .. | .. |
|---|
| 32 | 32 | |
|---|
| 33 | 33 | private static final long serialVersionUID = 1L; |
|---|
| 34 | 34 | |
|---|
| 35 | | - @Id |
|---|
| 36 | 35 | @JsonIgnore |
|---|
| 36 | + @Id |
|---|
| 37 | 37 | @ManyToOne |
|---|
| 38 | 38 | @JoinColumn(name = "license_type_id") |
|---|
| 39 | + @JsonBackReference |
|---|
| 39 | 40 | private LicenseType licenseType; |
|---|
| 40 | 41 | |
|---|
| 41 | 42 | @Id |
|---|
| .. | .. |
|---|
| 45 | 46 | private String value; |
|---|
| 46 | 47 | |
|---|
| 47 | 48 | private boolean mandatory; |
|---|
| 48 | | - |
|---|
| 49 | | - @JsonProperty("licensetype_id") |
|---|
| 50 | | - public Integer getLicenseTypeId() { |
|---|
| 51 | | - return licenseType == null ? null : licenseType.getId(); |
|---|
| 52 | | - } |
|---|
| 53 | | - |
|---|
| 54 | | - @JsonProperty("licensetype_id") |
|---|
| 55 | | - public void setLicenseTypeId(Integer idLicenseType) { |
|---|
| 56 | | - if (idLicenseType == null) { |
|---|
| 57 | | - licenseType = null; |
|---|
| 58 | | - } else { |
|---|
| 59 | | - licenseType = new LicenseType(); |
|---|
| 60 | | - licenseType.setId(idLicenseType); |
|---|
| 61 | | - } |
|---|
| 62 | | - } |
|---|
| 63 | 49 | |
|---|
| 64 | 50 | public LicenseType getLicenseType() { |
|---|
| 65 | 51 | return licenseType; |
|---|