1 | <?xml version='1.0' encoding='utf-8'?>
|
---|
2 | <!DOCTYPE hibernate-configuration PUBLIC
|
---|
3 | "-//Hibernate/Hibernate Configuration DTD//EN"
|
---|
4 | "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
---|
5 |
|
---|
6 | <!--
|
---|
7 | Document : hibernate.cfg.xml
|
---|
8 | Created on : July 15, 2008, 10:20 PM
|
---|
9 | Author : svalluripalli
|
---|
10 | Description:
|
---|
11 | Purpose of the document follows.
|
---|
12 | -->
|
---|
13 |
|
---|
14 | <hibernate-configuration>
|
---|
15 | <session-factory>
|
---|
16 | <property name="hibernate.connection.driver_class">
|
---|
17 |
|
---|
18 | com.mysql.jdbc.Driver</property>
|
---|
19 | <property name="hibernate.connection.url">
|
---|
20 |
|
---|
21 | jdbc:mysql:///auditrepo</property>
|
---|
22 | <property name="hibernate.connection.username">nhincuser</property>
|
---|
23 | <property name="hibernate.connection.password">nhincpass</property>
|
---|
24 | <property name="show_sql">true</property>
|
---|
25 | <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
|
---|
26 | <property name="hibernate.hbm2ddl.auto">update</property>
|
---|
27 | <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
|
---|
28 | <!-- thread is the short name for org.hibernate.context.ThreadLocalSessionContext
|
---|
29 | and let Hibernate bind the session automatically to the thread -->
|
---|
30 | <property name="current_session_context_class">thread</property>
|
---|
31 | <!-- this will show us all sql statements -->
|
---|
32 | <property name="hibernate.show_sql">true</property>
|
---|
33 | <!-- configuration pool via c3p0-->
|
---|
34 | <property name="c3p0.acquireRetryAttempts">4</property>
|
---|
35 | <property name="c3p0.acquire_increment">1</property>
|
---|
36 | <property name="c3p0.idle_test_period">100</property> <!-- seconds -->
|
---|
37 | <property name="c3p0.max_size">100</property>
|
---|
38 | <property name="c3p0.max_statements">0</property>
|
---|
39 | <property name="c3p0.min_size">3</property>
|
---|
40 | <property name="c3p0.timeout">100</property> <!-- seconds -->
|
---|
41 | <!-- DEPRECATED very expensive property name="c3p0.validate>-->
|
---|
42 |
|
---|
43 | <!-- Mapping files -->
|
---|
44 | <mapping resource="auditrepo.hbm.xml"/>
|
---|
45 | </session-factory>
|
---|
46 | </hibernate-configuration>
|
---|