-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhibernate.cfg.xml
25 lines (20 loc) · 1.04 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
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/rsvp</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">false</property>
<!-- Drop and re-create the database schema at startup -->
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping class="rsvp.booking.model.Booking"/>
<mapping class="rsvp.user.model.User"/>
<mapping class="rsvp.resources.model.UniversityRoom"/>
<mapping class="rsvp.resources.model.TimeSlot"/>
</session-factory>
</hibernate-configuration>