Annotation Interface ParticipationConstraints
Allows to specify participation constraints of an attribute.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean(Optional) Whether the annotated field can be empty, i.e.
-
Element Details
-
value
ParticipationConstraint[] value- Default:
- {}
-
nonEmpty
boolean nonEmpty(Optional) Whether the annotated field can be empty, i.e.nullfor singular attributes andnullor empty for plural attributes (this is up to the implementation).This attributes corresponds to using a
ParticipationConstraintwithmin = 1.In case there are participation constraints specified as values of this annotation, the
nonEmptyvalue is ignored.- Returns:
- Whether the field can be empty
- Default:
- false
-