From 111102e7356a212e28bd3af2ae4325629d99aafb Mon Sep 17 00:00:00 2001
From: razzanYoni <13521087@mahasiswa.itb.ac.id>
Date: Thu, 2 Nov 2023 00:35:48 +0700
Subject: [PATCH] refactor: add and change some hibernate properties

---
 src/main/resources/hibernate.cfg.xml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/resources/hibernate.cfg.xml b/src/main/resources/hibernate.cfg.xml
index c57c8a6..33e84f1 100644
--- a/src/main/resources/hibernate.cfg.xml
+++ b/src/main/resources/hibernate.cfg.xml
@@ -5,13 +5,13 @@
 <hibernate-configuration>
     <session-factory>
 
-        <property name="hbm2ddl.auto">update</property>
+        <property name="hibernate.hbm2ddl.auto">update</property>
         <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
-        <property name="hibernate.connection.url">${DATABASE_URL}</property>
-        <property name="hibernate.connection.datasource">${DATABASE}</property>
-        <property name="hibernate.connection.username">${DATABASE_USERNAME}</property>
-        <property name="hibernate.connection.password">${DATABASE_PASSWORD}</property>
-        <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
+        <property name="hibernate.connection.autocommit">false</property>
+        <property name="hibernate.show_sql">true</property>
+        <property name="hibernate.format_sql">true</property>
+        <property name="hibernate.connection.pool_size">10</property>
+        <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
 
         <mapping class="org.tonality.model.Subscription"/>
     </session-factory>
-- 
GitLab