You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <!-- a SessionFactory instance listed as /jndi/name --> <session-factory>
<!-- properties --> <property name="hibernate.connection.driver_class">org.h2.Driver</property> <!--<property name="hibernate.connection.connection.url">jdbc:h2:imageTools.db</property>--> <property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property> <property name="hibernate.show_sql">false</property> <property name="hibernate.generate_statistics"></property> <property name="hibernate.use_sql_comments"></property> <!--<property name="transaction.factory_class">
org.hibernate.transaction.JTATransactionFactory </property>--> <property name="jta.UserTransaction">java:comp/UserTransaction</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Enable Hibernate's automatic session context management --> <property name="hibernate.current_session_context_class">thread</property>
<!-- Enable the second-level cache --> <property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.EhCacheRegionFactory</property> <property name="hibernate.cache.region.factory_class">org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory</property> <property name="hibernate.cache.use_second_level_cache">true</property>
<property name="c3p0.acquire_increment">1</property> <property name="c3p0.idle_test_period">100</property> <!-- seconds --> <property name="c3p0.max_size">50</property> <property name="c3p0.max_statements">0</property> <property name="c3p0.min_size">5</property> <property name="c3p0.timeout">100</property> <!-- seconds -->
<!-- mapping files --> <mapping resource="hibernate/Image.hbm.xml"/> <mapping resource="hibernate/ImageHash.hbm.xml"/>
<!-- cache settings --> <!--<class-cache class="org.hibernate.auction.Item" usage="read-write"/>
<class-cache class="org.hibernate.auction.Bid" usage="read-only"/> <collection-cache collection="org.hibernate.auction.Item.bids" usage="read-write"/>--> </session-factory> </hibernate-configuration>
|