[jboss-cvs] jboss-seam/examples/wiki/src/etc/META-INF ...

Christian Bauer christian at hibernate.org
Mon Jul 9 12:37:39 EDT 2007


  User: cbauer  
  Date: 07/07/09 12:37:39

  Modified:    examples/wiki/src/etc/META-INF  persistence-test-war.xml
  Log:
  Make unit tests run on Embeddable JBoss
  
  Revision  Changes    Path
  1.4       +25 -16    jboss-seam/examples/wiki/src/etc/META-INF/persistence-test-war.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: persistence-test-war.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/etc/META-INF/persistence-test-war.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- persistence-test-war.xml	18 Mar 2007 14:05:15 -0000	1.3
  +++ persistence-test-war.xml	9 Jul 2007 16:37:39 -0000	1.4
  @@ -7,15 +7,24 @@
                
      <persistence-unit name="wiki" transaction-type="JTA">
         <provider>org.hibernate.ejb.HibernatePersistence</provider>
  +
         <jta-data-source>java:/wikiTestDatasource</jta-data-source>
  -      <jar-file>@entityClassesDir@</jar-file> <!-- Compiled entity classes are not where persistence.xml is -->
  +
          <properties>
  -         <property name="hibernate.hbm2ddl.auto" value="create"/> <!-- create-drop throws exception with E-EJB3 -->
  +
  +            <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  +
            <property name="hibernate.show_sql" value="true"/>
  -           <!-- TODO: So do we need a TF or not in EEJB3? -->
  -         <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
  +
  +            <property name="hibernate.transaction.manager_lookup_class"
  +                      value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
  +
            <property name="hibernate.cache.use_second_level_cache" value="false"/>
  +            
  +            <property name="jboss.entity.manager.factory.jndi.name" value="java:/entityManagerFactories/wiki"/>
  +
         </properties>
  +
      </persistence-unit>
       
   </persistence>
  
  
  



More information about the jboss-cvs-commits mailing list