Interface ConstraintDefinitionTarget

    • Method Detail

      • constraintDefinition

        <A extends AnnotationConstraintDefinitionContext<A> constraintDefinition​(Class<A> annotationType)
        Selects the constraint (i.e. annotation type) to which the next operations shall apply. A given constraint may only be configured once.
        Type Parameters:
        A - The annotation type to select.
        Parameters:
        annotationType - The annotation type to select. This type must be an @interface annotated with jakarta.validation.Constraint.
        Returns:
        A creational context representing the selected constraint.