Skip to content

Commit

Permalink
fix ValidatorFactory2PhaseInjectionTest
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 authored and sebersole committed May 6, 2016
1 parent 7ce75e4 commit 614d406
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -226,6 +226,14 @@ public SessionFactoryImpl(final MetadataImplementor metadata, SessionFactoryOpti

this.properties = new HashMap<>();
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);
this.sqlFunctionRegistry = new SQLFunctionRegistry( jdbcServices.getJdbcEnvironment().getDialect(), options.getCustomSqlFunctionMap() );
this.cacheAccess = this.serviceRegistry.getService( CacheImplementor.class );
Expand Down

0 comments on commit 614d406

Please sign in to comment.