HHH-13853 fix minor issue

This commit is contained in:
Nathan Xu 2020-02-18 14:09:33 -05:00 committed by Sanne Grinovero
parent d9a335c429
commit e9df1cb626
1 changed files with 4 additions and 3 deletions

View File

@ -193,13 +193,14 @@ public class EntityManagerFactoryBuilderImpl implements EntityManagerFactoryBuil
this.persistenceUnit = persistenceUnit;
if ( integrationSettings == null ) {
integrationSettings = Collections.emptyMap();
integrationSettings = new HashMap();
}
Map mergedIntegrationSettings = null;
Properties properties = persistenceUnit.getProperties();
if ( properties != null ) {
mergedIntegrationSettings = new HashMap( persistenceUnit.getProperties() );
// original integratin setting entries take precedence
mergedIntegrationSettings = new HashMap( properties );
mergedIntegrationSettings.putAll( integrationSettings );
}