import javax.persistence.ManyToOne;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
+import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlElement(name = "Modifier")
@ManyToMany(fetch = FetchType.LAZY)
@Cascade({CascadeType.SAVE_UPDATE, CascadeType.MERGE})
+ @NotNull
private Set<Modifier> modifiers = new HashSet<Modifier>();
@XmlElement(name = "ModifyingText")
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
+import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
@XmlIDREF
@XmlSchemaType(name = "IDREF")
@OneToMany(fetch = FetchType.LAZY)
+ @NotNull
private Set<Modifier> modifiers = new HashSet<Modifier>();
@XmlElement(name = "StatisticalMeasureType")