-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhibernate.cfg.xml
48 lines (32 loc) · 1.29 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
38
39
40
41
42
43
44
45
46
47
<hibernate-configuration>
<session-factory>
<!-- Database connection settings -->
<property name="hibernate.connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="hibernate.connection.url">
jdbc:mysql://localhost:3306</property>
<property name="hibernate.connection.username">
root
</property>
<property name="hibernate.connection.password">
admin
</property>
<!-- JDBC connection pool (use built in) -->
<property name="connection.pool_size">1</property>
<!-- SQL dialect -->
<property name="hibernate.dialect">
org.hibernate.dialect.MySQLDialect
</property>
<!-- Disable the second level cache -->
<property name="cache.provider_class">org.hibernate.cache.internal.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<!-- Drop and recreate the database schema on startup -->
<property name="hibernate.hbm2ddl.auto">create</property>
<!-- Default schema on the database -->
<property name="hibernate.default_schema">productivity</property>
<!-- Names the annotated entity class -->
<mapping class = "model.UserProfile" />
</session-factory>
</hibernate-configuration>