1 | <?xml version='1.0' encoding='utf-8'?>
|
---|
2 | <!DOCTYPE hibernate-configuration PUBLIC
|
---|
3 | "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
---|
4 | "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
---|
5 |
|
---|
6 | <hibernate-configuration>
|
---|
7 |
|
---|
8 | <session-factory>
|
---|
9 |
|
---|
10 | <!-- Database connection settings -->
|
---|
11 | <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
|
---|
12 | <property name="connection.url">jdbc:mysql://localhost/docrepository</property>
|
---|
13 | <property name="connection.username">nhincuser</property>
|
---|
14 | <property name="connection.password">nhincpass</property>
|
---|
15 |
|
---|
16 | <!-- SQL dialect -->
|
---|
17 | <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
|
---|
18 |
|
---|
19 | <!-- Enable Hibernate's automatic session context management -->
|
---|
20 | <!-- <property name="current_session_context_class">thread</property> -->
|
---|
21 |
|
---|
22 | <!-- Disable the second-level cache -->
|
---|
23 | <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
|
---|
24 |
|
---|
25 | <!-- Echo all executed SQL to stdout -->
|
---|
26 | <property name="show_sql">true</property>
|
---|
27 | <!-- configuration pool via c3p0-->
|
---|
28 | <property name="c3p0.acquireRetryAttempts">4</property>
|
---|
29 | <property name="c3p0.acquire_increment">1</property>
|
---|
30 | <property name="c3p0.idle_test_period">100</property> <!-- seconds -->
|
---|
31 | <property name="c3p0.max_size">100</property>
|
---|
32 | <property name="c3p0.max_statements">0</property>
|
---|
33 | <property name="c3p0.min_size">3</property>
|
---|
34 | <property name="c3p0.timeout">100</property> <!-- seconds -->
|
---|
35 |
|
---|
36 | <!-- DEPRECATED very expensive property name="c3p0.validate>-->
|
---|
37 | <!-- Drop and re-create the database schema on startup -->
|
---|
38 | <!-- <property name="hbm2ddl.auto">create</property> -->
|
---|
39 |
|
---|
40 | <mapping resource="Document.hbm.xml"/>
|
---|
41 | <mapping resource="EventCode.hbm.xml"/>
|
---|
42 |
|
---|
43 | </session-factory>
|
---|
44 |
|
---|
45 | </hibernate-configuration>
|
---|