HHH-10119 - EhCacheRegionFactory cannot find configurationResourceName set in .cfg.xml

This commit is contained in:
Steve Ebersole 2015-09-24 11:50:59 -05:00
parent 6ce9d6848d
commit 0c628fa9aa
1 changed files with 5 additions and 4 deletions

View File

@ -156,11 +156,12 @@ public class LoadedConfig {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
private void addConfigurationValue(String propertyName, String value) { private void addConfigurationValue(String propertyName, String value) {
if ( !propertyName.startsWith( "hibernate." ) ) { value = trim( value );
propertyName = "hibernate." + propertyName; configurationValues.put( propertyName, value );
}
configurationValues.put( propertyName, trim( value ) ); if ( !propertyName.startsWith( "hibernate." ) ) {
configurationValues.put( "hibernate." + propertyName, value );
}
} }
private void addMappingReference(MappingReference mappingReference) { private void addMappingReference(MappingReference mappingReference) {