Configuring Hibernate with HikariCP
You can use the org.hibernate.hikaricp.internal.HikariCPConnectionProvider
which is shipped by hibernate-hikaricp
package.
You can install it as Maven dependency (please don't forget to update the version number):
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-hikaricp</artifactId>
<version>5.2.10.Final</version>
</dependency>
And configure it in hibernate.properties:
`hibernate.connection.provider_class=org.hibernate.hikaricp.internal.HikariCPConnectionProvider`
Please note: As of Hibernate 4.3.6 you should no longer use com.zaxxer.hikari.hibernate.HikariConnectionProvider
(see: https://github.com/brettwooldridge/HikariCP/wiki/Hibernate4)
HikariCP, as of version 1.2.6, now supports Hibernate 4.x explicitly with a ConnectionProvider. See the new wiki documentation for details.