In AvailableSettings.java:
/**
* Names the {@link org.hibernate.engine.jdbc.connections.spi.ConnectionProvider} to use for obtaining
* JDBC connections. Can reference:<ul>
* <li>an instance of ConnectionProvider</li>
* <li>a {@code Class<? extends ConnectionProvider>} reference</li>
* <li>a {@code Class<? extends ConnectionProvider>} FQN</li>
* </ul>
* <p/>
* The term {@code "class"} appears in the setting name due to legacy reasons; however it can accept instances.
*/
String CONNECTION_PROVIDER ="hibernate.connection.provider_class";
The first two options are no longer supported with the "new" bootstrap code. It breaks because of this cast in ConnectionProviderInitiator.java:
String providerName = (String) configurationValues.get( AvailableSettings.CONNECTION_PROVIDER );
And obviously the logic to handle an existing instance of the right type or a class reference is missing. |