|
As per section 3.1 a ConstraintDefinitionException is to be thrown if both @Constraint and @CrossParameterConstraint are given at a constraint type:
A Bean Validation constraint is either a generic constraint (marked with @Constraint) or a cross-parameter constraint (marked with @CrossParameterConstraint). If both annotations are given on an annotation type, a ConstraintDefinitionException is raised by the Bean Validation provider.
|