From 1902d11d78d4c41b3a95bc6cc4410beca47d4997 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Fri, 19 Aug 2016 16:57:21 +0100 Subject: [PATCH] Removed hibernate-c3p0. --- pom.xml | 5 ----- src/main/java/musicplayer/db/HibernateDatabase.java | 5 ----- 2 files changed, 10 deletions(-) diff --git a/pom.xml b/pom.xml index 17609f4..53a26dd 100644 --- a/pom.xml +++ b/pom.xml @@ -73,11 +73,6 @@ 5.1.1.Final compile - - org.hibernate - hibernate-c3p0 - 5.1.1.Final - org.hsqldb hsqldb diff --git a/src/main/java/musicplayer/db/HibernateDatabase.java b/src/main/java/musicplayer/db/HibernateDatabase.java index 46213fe..e92d10e 100644 --- a/src/main/java/musicplayer/db/HibernateDatabase.java +++ b/src/main/java/musicplayer/db/HibernateDatabase.java @@ -42,11 +42,6 @@ public class HibernateDatabase implements IDatabase{ properties.put("hibernate.connection.driver_class", "org.hsqldb.jdbc.JDBCDriver"); 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){ properties.put("hibernate.connection.url", "jdbc:hsqldb:mem:."); properties.put("hibernate.hbm2ddl.auto", "create-drop");