| .. | .. |
|---|
| 25 | 25 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
|---|
| 26 | 26 | import com.fasterxml.jackson.annotation.JsonInclude; |
|---|
| 27 | 27 | import com.fasterxml.jackson.annotation.JsonInclude.Include; |
|---|
| 28 | +import com.fasterxml.jackson.annotation.JsonManagedReference; |
|---|
| 28 | 29 | import com.fasterxml.jackson.annotation.JsonProperty; |
|---|
| 29 | 30 | |
|---|
| 30 | 31 | /** |
|---|
| .. | .. |
|---|
| 59 | 60 | private Date creationTimestamp; |
|---|
| 60 | 61 | |
|---|
| 61 | 62 | @JsonIgnore |
|---|
| 62 | | - @ManyToOne |
|---|
| 63 | + @ManyToOne(fetch = FetchType.LAZY) |
|---|
| 63 | 64 | @JoinColumn(name = "application_id") |
|---|
| 64 | 65 | private Application application; |
|---|
| 65 | 66 | |
|---|
| 66 | 67 | @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "licenseType") |
|---|
| 68 | + @JsonManagedReference |
|---|
| 67 | 69 | private Set<LicenseTypeMetadata> metadata; |
|---|
| 68 | 70 | |
|---|
| 69 | 71 | public Set<LicenseTypeMetadata> getMetadata() { |
|---|
| .. | .. |
|---|
| 107 | 109 | } |
|---|
| 108 | 110 | |
|---|
| 109 | 111 | public Application getApplication() { |
|---|
| 112 | + LOG.info("Getting APP from LicType"); |
|---|
| 110 | 113 | return application; |
|---|
| 111 | 114 | } |
|---|
| 112 | 115 | |
|---|