In Hibernate I can define the property named: hibernate.connection.provider_class
to declare a class which should be used by Hibernate to create new Connections. This class must implement the interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
. Is there anything similar in EclipseLink?
The use case behind that is, that I want to wrap jdbc-connections created by a JPA-Provider using a class which allows it to manipulate the statements sent to the JDBC-Driver.
For instance I want to remove sql-hints used in productive code to be able to replace the productive database during tests by H2.