Skip to content

Commit 8fde722

Browse files
committed
HHH-10119 - EhCacheRegionFactory cannot find configurationResourceName set in .cfg.xml
(cherry picked from commit 0c628fa)
1 parent 91cd767 commit 8fde722

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

hibernate-core/src/main/java/org/hibernate/boot/cfgxml/spi/LoadedConfig.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ private static String trim(String value) {
156156

157157
@SuppressWarnings("unchecked")
158158
private void addConfigurationValue(String propertyName, String value) {
159+
value = trim( value );
160+
configurationValues.put( propertyName, value );
161+
159162
if ( !propertyName.startsWith( "hibernate." ) ) {
160-
propertyName = "hibernate." + propertyName;
163+
configurationValues.put( "hibernate." + propertyName, value );
161164
}
162-
163-
configurationValues.put( propertyName, trim( value ) );
164165
}
165166

166167
private void addMappingReference(MappingReference mappingReference) {

0 commit comments

Comments
 (0)