-
Notifications
You must be signed in to change notification settings - Fork 0
/
hibernate.cfg.xml
37 lines (30 loc) · 1.6 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
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<!-- Author: Mateja Opačić -->
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost/disbaza</property>
<property name="connection.username">root</property>
<property name="connection.password">paparaco16</property>
<property name="connection.pool_size">5</property>
<!-- <property name="hbm2ddl.auto">create</property>-->
<!-- Print SQL to stdout. -->
<property name="show_sql">false</property>
<property name="format_sql">true</property>
<property name="use_sql_comments">true</property>
<property name="generate_statistics">true</property>
<property name="hibernate.transaction.flush_before_completion">true</property>
<!-- Mapping files -->
<mapping class="rs.dis.setup.entities.Korisnik"/>
<mapping class="rs.dis.setup.entities.Vrata"/>
<mapping class="rs.dis.setup.entities.Prozori"/>
<mapping class="rs.dis.setup.entities.Laminat"/>
<mapping class="rs.dis.setup.entities.Lamperija"/>
<mapping class="rs.dis.setup.entities.Bpod"/>
<mapping class="rs.dis.setup.entities.OstalaDG"/>
<mapping class="rs.dis.setup.entities.DodatniMAT"/>
</session-factory>
</hibernate-configuration>