The preferred way to alter the ValidatorFactory behavior is to either: 1. Provide a pre-built instance to Hibernate during boostrap using the javax.persistence.validation.factory configuration property. 2. Configure the bean validation factory using XML configuration in validation.xml. 3. If building the SessionFactory yourself, you can use SessionFactoryBuilder#applyValidatorFactory(Object) to supply a custom pre-built validator factory instance. |