fix ValidatorFactory2PhaseInjectionTest

This commit is contained in:
Andrea Boriero 2016-05-02 15:51:05 +01:00 committed by Steve Ebersole
parent 7ce75e4080
commit 614d406e8c
1 changed files with 8 additions and 0 deletions

View File

@ -226,6 +226,14 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
this.properties = new HashMap<>(); this.properties = new HashMap<>();
this.properties.putAll( serviceRegistry.getService( ConfigurationService.class ).getSettings() ); this.properties.putAll( serviceRegistry.getService( ConfigurationService.class ).getSettings() );
if ( !properties.containsKey( AvailableSettings.JPA_VALIDATION_FACTORY ) ) {
if ( getSessionFactoryOptions().getValidatorFactoryReference() != null ) {
properties.put(
AvailableSettings.JPA_VALIDATION_FACTORY,
getSessionFactoryOptions().getValidatorFactoryReference()
);
}
}
maskOutSensitiveInformation(this.properties); maskOutSensitiveInformation(this.properties);
this.sqlFunctionRegistry = new SQLFunctionRegistry( jdbcServices.getJdbcEnvironment().getDialect(), options.getCustomSqlFunctionMap() ); this.sqlFunctionRegistry = new SQLFunctionRegistry( jdbcServices.getJdbcEnvironment().getDialect(), options.getCustomSqlFunctionMap() );
this.cacheAccess = this.serviceRegistry.getService( CacheImplementor.class ); this.cacheAccess = this.serviceRegistry.getService( CacheImplementor.class );