Removed hibernate-c3p0.

This commit is contained in:
neviyn 2016-08-19 16:57:21 +01:00
parent 075b2fea8f
commit 1902d11d78
2 changed files with 0 additions and 10 deletions

View File

@ -73,11 +73,6 @@
<version>5.1.1.Final</version> <version>5.1.1.Final</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>5.1.1.Final</version>
</dependency>
<dependency> <dependency>
<groupId>org.hsqldb</groupId> <groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId> <artifactId>hsqldb</artifactId>

View File

@ -42,11 +42,6 @@ public class HibernateDatabase implements IDatabase{
properties.put("hibernate.connection.driver_class", "org.hsqldb.jdbc.JDBCDriver"); properties.put("hibernate.connection.driver_class", "org.hsqldb.jdbc.JDBCDriver");
properties.put("hibernate.enable_lazy_load_no_trans", "true"); properties.put("hibernate.enable_lazy_load_no_trans", "true");
properties.put("hibernate.c3p0.min_size", 5);
properties.put("hibernate.c3p0.max_size", 200);
properties.put("hibernate.c3p0.max_statements", 200);
properties.put("hibernate.c3p0.timeout", 0);
if(testMode){ if(testMode){
properties.put("hibernate.connection.url", "jdbc:hsqldb:mem:."); properties.put("hibernate.connection.url", "jdbc:hsqldb:mem:.");
properties.put("hibernate.hbm2ddl.auto", "create-drop"); properties.put("hibernate.hbm2ddl.auto", "create-drop");