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.

34 lines
1.5 KiB

  1. <?xml version='1.0' encoding='utf-8'?>
  2. <!DOCTYPE hibernate-configuration PUBLIC
  3. "-//Hibernate/Hibernate Configuration DTD//EN"
  4. "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  5. <hibernate-configuration>
  6. <!-- a SessionFactory instance listed as /jndi/name -->
  7. <session-factory>
  8. <!-- properties -->
  9. <property name="connection.driver_class">org.h2.Driver</property>
  10. <property name="dialect">org.hibernate.dialect.H2Dialect</property>
  11. <property name="show_sql">true</property>
  12. <!--<property name="transaction.factory_class">
  13. org.hibernate.transaction.JTATransactionFactory
  14. </property>-->
  15. <property name="jta.UserTransaction">java:comp/UserTransaction</property>
  16. <property name="hibernate.hbm2ddl.auto">create</property>
  17. <!-- Enable Hibernate's automatic session context management -->
  18. <property name="current_session_context_class">thread</property>
  19. <!-- Disable the second-level cache -->
  20. <!--<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>-->
  21. <!-- mapping files -->
  22. <mapping resource="hibernate/Image.hbm.xml"/>
  23. <mapping resource="hibernate/ImageHash.hbm.xml"/>
  24. <!-- cache settings -->
  25. <!--<class-cache class="org.hibernate.auction.Item" usage="read-write"/>
  26. <class-cache class="org.hibernate.auction.Bid" usage="read-only"/>
  27. <collection-cache collection="org.hibernate.auction.Item.bids" usage="read-write"/>-->
  28. </session-factory>
  29. </hibernate-configuration>