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

(cherry picked from commit 0c628fa9aa)
This commit is contained in:
Steve Ebersole 2015-09-24 11:50:59 -05:00
parent 91cd767d20
commit 8fde7229fe
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) {