1
|
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
<!DOCTYPE hibernate-configuration PUBLIC
|
3
|
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
4
|
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
5
|
|
6
|
<hibernate-configuration>
|
7
|
<session-factory>
|
8
|
|
9
|
<!-- Connection settings -->
|
10
|
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
|
11
|
<property name="hibernate.connection.url">jdbc:postgresql://localhost/jvmhubtutorial</property>
|
12
|
<property name="hibernate.connection.username">user</property>
|
13
|
<property name="hibernate.connection.password">password</property>
|
14
|
|
15
|
<!-- SQL dialect -->
|
16
|
<property name="hibernate.dialect">org.hibernatedialect.PostgreSQLDialect</property>
|
17
|
|
18
|
<!-- Print executed SQL to stdout -->
|
19
|
<property name="show_sql">true</property>
|
20
|
|
21
|
<!-- Drop and re-create all database on startup -->
|
22
|
<property name="hibernate.hbm2ddl.auto">create-drop</property>
|
23
|
|
24
|
<!-- Annotated entity classes -->
|
25
|
<mapping class="com.jvmhub.tutorial.entity.AppUser"/>
|
26
|
|
27
|
</session-factory>
|
28
|
</hibernate-configuration>
|