| .. | .. |
|---|
| 4 | 4 | import java.util.Date; |
|---|
| 5 | 5 | import java.util.Set; |
|---|
| 6 | 6 | |
|---|
| 7 | +import javax.persistence.CascadeType; |
|---|
| 7 | 8 | import javax.persistence.Column; |
|---|
| 8 | 9 | import javax.persistence.Entity; |
|---|
| 9 | 10 | import javax.persistence.FetchType; |
|---|
| .. | .. |
|---|
| 62 | 63 | @JoinColumn(name = "application_id") |
|---|
| 63 | 64 | private Application application; |
|---|
| 64 | 65 | |
|---|
| 65 | | - @OneToMany(fetch = FetchType.LAZY, mappedBy = "licenseType") |
|---|
| 66 | + @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "licenseType") |
|---|
| 66 | 67 | private Set<LicenseTypeMetadata> metadata; |
|---|
| 67 | 68 | |
|---|
| 68 | 69 | public Set<LicenseTypeMetadata> getMetadata() { |
|---|