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.null
for singular attributes andnull
or empty for plural attributes (this is up to the implementation).This attributes corresponds to using a
ParticipationConstraint
withmin = 1
.In case there are participation constraints specified as values of this annotation, the
nonEmpty
value is ignored.- Returns:
- Whether the field can be empty
- Default:
- false
-