-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhibernate.cfg.xml
26 lines (26 loc) · 1.54 KB
/
hibernate.cfg.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version = "1.0" encoding = "utf-8"?>
<!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="connection.driver_class">com.mysql.cj.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/restaurant?useLegacyDatetimeCode=false?useSSL=false&serverTimezone=Europe/Warsaw</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<property name="connection.pool_size">1</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.physical_naming_strategy">com.chriserus.hibernate.SnakeCasePhysicalNamingStrategy
</property>
<property name="show_sql">true</property>
<property name="current_session_context_class">thread</property>
<property name="hibernate.dbcp.initialSize">5</property>
<property name="hibernate.dbcp.maxTotal">20</property>
<property name="hibernate.dbcp.maxIdle">10</property>
<property name="hibernate.dbcp.minIdle">5</property>
<property name="hibernate.dbcp.maxWaitMillis">-1</property>
<mapping class="com.chriserus.hibernate.Client"/>
<mapping class="com.chriserus.hibernate.Item"/>
<mapping class="com.chriserus.hibernate.Purchase"/>
</session-factory>
</hibernate-configuration>