http://lists.jboss.org/pipermail/hibernate-dev/2015-July/013012.html reports a WildFly test failure that I missed in my testing a few days ago (sorry about that). Hibernate Validator is not using the ValidatorFactory passed to EntityManagerFactoryBuilderImpl.withValidatorFactory(ValidatorFactory) because the VF doesn't seem to be set in the ConfigurationService. EntityManagerFactoryBuilderImpl#populate is passing the VF to the SessionFactoryBuilder but not setting the property in the CS. Should we change the EntityManagerFactoryBuilderImpl#populate code to also set VF in the CS?
hack workaround in EntityManagerFactoryBuilderImpl#populate: {quote} if ( this.validatorFactory != null ) { ((HashMap) ((StandardServiceRegistryImpl) ssr).configurationValues).put("javax.persistence.validation.factory",validatorFactory) sfBuilder.applyValidatorFactory( validatorFactory ); }
{quote}
|