Last but not least, the list of ConstraintValidators associated to a given constraint can be altered via the constraint-definition node. The annotation attribute represents the constraint annotation being altered. The validated-by elements represent the (ordered) list of ConstraintValidator implementations associated to the constraint. If include-existing-validator is set to false, validators defined on the constraint annotation are ignored. If set to true, the list of ConstraintValidators described in XML are concatenated to the list of validators described on the annotation.
The constraint mapping xml files are listed in validation.xml.
You need to use something like this:
http://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#example-constraints-car:
The constraint mapping xml files are listed in validation.xml.