Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0' encoding='utf-8'?>
- <!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD//EN"
- "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
- <hibernate-configuration>
- <session-factory>
- <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
- <property name="hibernate.connection.datasource">java:/comp/env/jdbc/db</property>
- <property name="hibernate.current_session_context_class">org.hibernate.context.internal.ThreadLocalSessionContext</property>
- <property name="hibernate.cache.use_query_cache">true</property>
- <property name="hibernate.cache.use_second_level_cache">true</property>
- <property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property>
- <property name="net.sf.ehcache.configurationResourceName">ehcache.xml</property>
- <property name="hibernate.default_batch_fetch_size">1000</property>
- <property name="hibernate.jdbc.batch_size">20</property>
- <property name="hibernate.generate_statistics">false</property>
- <property name="hibernate.show_sql">true</property>
- <property name="hibernate.format_sql">false</property>
- <property name="hibernate.use_sql_comments">true</property>
- </session-factory>
- </hibernate-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement