Revision 1ea1c087
Added by Ben Clark about 15 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/QuantitativeData.java | ||
---|---|---|
77 | 77 |
@XmlElementWrapper(name = "StatisticalValues") |
78 | 78 |
@XmlElement(name = "StatisticalValue") |
79 | 79 |
@OneToMany(fetch = FetchType.LAZY) |
80 |
@Cascade({CascadeType.SAVE_UPDATE}) |
|
80 |
@Cascade({CascadeType.SAVE_UPDATE, CascadeType.MERGE})
|
|
81 | 81 |
private Set<StatisticalMeasurementValue> statisticalValues = new HashSet<StatisticalMeasurementValue>(); |
82 | 82 |
|
83 | 83 |
/** |
Also available in: Unified diff
Added Cascade.MERGE for some, not all relationships where Cascade.SAVE_UPDATE exists, also added @NaturalId on uuid field to (a) index this column, speeding it up and (b) ensure uniqueness within a table of a given uuid (following the same semantics as equals())