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="connection.driver_class">org.h2.Driver</property> <property name="dialect">org.hibernate.dialect.H2Dialect</property> <property name="show_sql">true</property> <!--<property name="transaction.factory_class">
org.hibernate.transaction.JTATransactionFactory </property>--> <property name="jta.UserTransaction">java:comp/UserTransaction</property>
<property name="hibernate.hbm2ddl.auto">create</property>
<!-- Enable Hibernate's automatic session context management --> <property name="current_session_context_class">thread</property>
<!-- Disable the second-level cache --> <!--<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>-->
<!-- 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>
|