Rev 271 | Rev 288 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | fvelez | 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 | <hibernate-configuration> |
||
6 | <session-factory> |
||
7 | <property name="connection.url">@database.connection.url@</property> |
||
8 | <property name="connection.driver_class">com.mysql.jdbc.Driver</property> |
||
9 | <property name="connection.username">@database.username@</property> |
||
10 | <property name="connection.password">@database.password@</property> |
||
11 | <property name="connection.autocommit">false</property> |
||
12 | <property name="dialect">org.hibernate.dialect.MySQLDialect</property> |
||
31 | jmachado | 13 | <property name="show_sql">@hibernate.show.sql@</property> |
1 | fvelez | 14 | <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> |
253 | jmachado | 15 | <property name="connection.pool_size">10</property> |
275 | jmachado | 16 | <property name="hibernate.transaction.auto_close_session">true</property> |
17 | <property name="hibernate.connection.release_mode ">after_transaction</property> |
||
271 | jmachado | 18 | <!--<property name="hibernate.c3p0.min_size">5</property>--> |
19 | <!--<property name="hibernate.c3p0.max_size">20</property>--> |
||
20 | <!--<property name="hibernate.c3p0.timeout">1800</property>--> |
||
21 | <!--<property name="hibernate.max_statements">50</property>--> |
||
1 | fvelez | 22 | |
23 | |||
24 | <!--<property name="current_session_context_class">org.hibernate.context.CurrentSessionContext</property>--> |
||
25 | <!--<property name="current_session_context_class">org.hibernate.context.JTASessionContext</property>--> |
||
26 | <!--<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.TransactionManagerLookup</property>--> |
||
271 | jmachado | 27 | <!--<property name="current_session_context_class">org.hibernate.context.ThreadLocalSessionContext</property>--> |
28 | <property name="current_session_context_class">thread</property> |
||
1 | fvelez | 29 | |
30 | {0} |
||
31 | </session-factory> |
||
32 | </hibernate-configuration> |