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")
private void addConfigurationValue(String propertyName, String value) {
if ( !propertyName.startsWith( "hibernate." ) ) {
propertyName = "hibernate." + propertyName;
}
value = trim( value );
configurationValues.put( propertyName, value );
configurationValues.put( propertyName, trim( value ) );
if ( !propertyName.startsWith( "hibernate." ) ) {
configurationValues.put( "hibernate." + propertyName, value );
}
}
private void addMappingReference(MappingReference mappingReference) {