|
@@ -1,16 +1,16 @@
|
|
|
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
|
|
<hibernate-configuration>
|
|
|
<session-factory>
|
|
|
- <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
|
|
|
- <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true</property>
|
|
|
- <property name="hibernate.connection.username">benchmarkdbuser</property>
|
|
|
- <property name="hibernate.connection.password">benchmarkdbpass</property>
|
|
|
+ <property name="hibernate.connection.provider_class">org.hibernate.hikaricp.internal.HikariCPConnectionProvider</property>
|
|
|
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
|
|
|
<property name="hibernate.cache.use_query_cache">false</property>
|
|
|
<property name="hibernate.show_sql">false</property>
|
|
|
- <property name="hibernate.c3p0.min_size">256</property>
|
|
|
- <property name="hibernate.c3p0.max_size">256</property>
|
|
|
- <property name="hibernate.c3p0.timeout">1800</property>
|
|
|
- <property name="hibernate.c3p0.max_statements">2048</property>
|
|
|
+ <property name="hibernate.hikari.minimumIdle">256</property>
|
|
|
+ <property name="hibernate.hikari.maximumPoolSize">256</property>
|
|
|
+ <property name="hibernate.hikari.idleTimeout">30000</property>
|
|
|
+ <property name="hibernate.hikari.dataSourceClassName">com.mysql.jdbc.jdbc2.optional.MysqlDataSource</property>
|
|
|
+ <property name="hibernate.hikari.dataSource.url">jdbc:mysql://localhost:3306/hello_world?jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=true&cacheCallableStmts=true&alwaysSendSetIsolation=false&prepStmtCacheSize=4096&cacheServerConfiguration=true&prepStmtCacheSqlLimit=2048&zeroDateTimeBehavior=convertToNull&traceProtocol=false&useUnbufferedInput=false&useReadAheadInput=false&maintainTimeStats=false&useServerPrepStmts&cacheRSMetadata=true</property>
|
|
|
+ <property name="hibernate.hikari.dataSource.user">benchmarkdbuser</property>
|
|
|
+ <property name="hibernate.hikari.dataSource.password">benchmarkdbpass</property>
|
|
|
</session-factory>
|
|
|
-</hibernate-configuration>
|
|
|
+</hibernate-configuration>
|