HHH-8492: Making the validator factory available via EntityManagerFactory.getProperties().get("javax.persistence.validation.factory").
This commit is contained in:
parent
580af7e61b
commit
93a67bec94
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue