Project

General

Profile

« Previous | Next » 

Revision 1ea1c087

Added by Ben Clark about 15 years ago

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())

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/CategoricalData.java
68 68
	@XmlElementWrapper(name = "States")
69 69
	@XmlElement(name = "State")
70 70
	@ManyToMany(fetch = FetchType.LAZY)
71
	@Cascade({ CascadeType.SAVE_UPDATE })
71
	@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE })
72 72
	private List<StateData> states = new ArrayList<StateData>();
73 73

  
74 74
	

Also available in: Unified diff