[jboss-cvs] jboss-seam/examples/hibernate2/resources/tomcat ...
Michael Yuan
michael.yuan at jboss.com
Tue Jun 26 19:03:19 EDT 2007
User: myuan
Date: 07/06/26 19:03:19
Added: examples/hibernate2/resources/tomcat hibernate.cfg.xml
Removed: examples/hibernate2/resources/tomcat components.xml
Log:
tomcat support
Revision Changes Path
1.1 date: 2007/06/26 23:03:19; author: myuan; state: Exp;jboss-seam/examples/hibernate2/resources/tomcat/hibernate.cfg.xml
Index: hibernate.cfg.xml
===================================================================
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="show_sql">false</property>
<property name="connection.datasource">java:comp/env/jdbc/TestDB</property>
<property name="hbm2ddl.auto">create-drop</property>
<property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
<property name="transaction.flush_before_completion">true</property>
<property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<mapping class="org.jboss.seam.example.hibernate.Hotel"/>
<mapping class="org.jboss.seam.example.hibernate.User"/>
<mapping class="org.jboss.seam.example.hibernate.Booking"/>
</session-factory>
</hibernate-configuration>
More information about the jboss-cvs-commits
mailing list