Annotation Type ConstraintComposition


  • @Documented
    @Target(ANNOTATION_TYPE)
    @Retention(RUNTIME)
    public @interface ConstraintComposition
    Boolean operator that is applied to all constraints of a composing constraint annotation.

    A composed constraint annotation can define a boolean combination of the constraints composing it, by using @ConstraintComposition.

    Author:
    Dag Hovland, Federico Mancini
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      CompositionType value
      The value of this element specifies the boolean operator, namely disjunction (OR), negation of the conjunction (ALL_FALSE), or, the default, simple conjunction (AND).
    • Element Detail

      • value

        CompositionType value
        The value of this element specifies the boolean operator, namely disjunction (OR), negation of the conjunction (ALL_FALSE), or, the default, simple conjunction (AND).
        Returns:
        the CompositionType value
        Default:
        org.hibernate.validator.constraints.CompositionType.AND