HHH-17734 Ensure provider_class has precedence over datasource
This commit is contained in:
parent
00d6777d05
commit
3700bbf4f0
|
@ -104,10 +104,6 @@ public class ConnectionProviderInitiator implements StandardServiceInitiator<Con
|
|||
return null;
|
||||
}
|
||||
|
||||
if ( configurationValues.get( AvailableSettings.DATASOURCE ) != null ) {
|
||||
return new DatasourceConnectionProviderImpl();
|
||||
}
|
||||
|
||||
final StrategySelector strategySelector = registry.getService( StrategySelector.class );
|
||||
final Object explicitSetting = configurationValues.get( AvailableSettings.CONNECTION_PROVIDER );
|
||||
if ( explicitSetting != null ) {
|
||||
|
@ -150,6 +146,10 @@ public class ConnectionProviderInitiator implements StandardServiceInitiator<Con
|
|||
}
|
||||
}
|
||||
|
||||
if ( configurationValues.get( AvailableSettings.DATASOURCE ) != null ) {
|
||||
return new DatasourceConnectionProviderImpl();
|
||||
}
|
||||
|
||||
ConnectionProvider connectionProvider = null;
|
||||
|
||||
final Class<? extends ConnectionProvider> singleRegisteredProvider = getSingleRegisteredProvider(
|
||||
|
|
Loading…
Reference in New Issue