HHH-8492: Making the validator factory available via EntityManagerFactory.getProperties().get("javax.persistence.validation.factory").

This commit is contained in:
Farah Juma 2013-09-11 13:17:09 -04:00 committed by Brett Meyer
parent 580af7e61b
commit 93a67bec94
1 changed files with 1 additions and 0 deletions

View File

@ -889,6 +889,7 @@ public class EntityManagerFactoryBuilderImpl implements EntityManagerFactoryBuil
if ( validationFactory != null ) {
BeanValidationIntegrator.validateFactory( validationFactory );
serviceRegistryBuilder.applySetting( AvailableSettings.VALIDATION_FACTORY, validationFactory );
configurationValues.put( AvailableSettings.VALIDATION_FACTORY, this.validatorFactory );
}
// flush before completion validation