Project

General

Profile

« Previous | Next » 

Revision 77eb660c

Added by Andreas Müller almost 7 years ago

Add orphanRemoval to RelationshipTermBase.inverseRepresentation

Same exists for TermBase.representation so we have consistent behavior
now. Also it makes sense as inverse Representations can not stand alone.

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/RelationshipTermBase.java
75 75

  
76 76
	@XmlElementWrapper(name = "InverseRepresentations")
77 77
	@XmlElement(name = "Representation")
78
	@OneToMany(fetch = FetchType.LAZY)
78
	@OneToMany(fetch = FetchType.LAZY, orphanRemoval=true)
79 79
	@JoinTable(name="RelationshipTermBase_inverseRepresentation")
80 80
	@Cascade({CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE})
81 81
	@IndexedEmbedded(depth = 2)

Also available in: Unified diff