|
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE
|
|
hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
|
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
|
|
<hibernate-configuration>
|
|
<session-factory>
|
|
<!-- you can modify this -->
|
|
<property name="hibernate.connection.datasource">java:comp/env/jdbc/EPCILONDB</property>
|
|
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
|
|
<property name="hibernate.show_sql">false</property>
|
|
<property name="hibernate.use_outer_join">true</property>
|
|
<property name="hibernate.max_fetch_depth">3</property>
|
|
<property name="hibernate.jdbc.batch_size">50</property>
|
|
<property name="hibernate.connection.autocommit">false</property>
|
|
<property name="hibernate.cache.use_second_level_cache">true</property>
|
|
<property name="hibernate.cache.use_query_cache">true</property>
|
|
<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
|
|
<property name="hibernate.cache.use_structured_entries">true</property>
|
|
<property name="hibernate.jdbc.use_get_generated_keys">true</property>
|
|
<property name="hibernate.generate_statistics">true</property>
|
|
<property name="hibernate.order_inserts">true</property>
|
|
|
|
<!-- but don't touch that -->
|
|
<mapping resource="hbm/EventToPublish.hbm.xml" />
|
|
</session-factory>
|
|
</hibernate-configuration>
|