Hi, I am not sure of your problem. But I think <property name="hibernate.hbm2ddl.auto" value="update" />
Has the same meaning of <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" /> Although, the second one is an openjpa property and should be ignored by hibernate provider. Any particular reason not to use the org.hibernate.transaction.JBossTransactionManagerLookup class? Bye, Paolo -----Messaggio originale----- Da: hamtho [mailto:[email protected]] Inviato: venerdì 6 febbraio 2009 11.14 A: [email protected] Oggetto: How to enable/disable Hibernate EntityManager Hi, I´m still struggling with the EXTENDED Persistence context and EntityManager. Maybe it has anything to do, because i use the Hibernate EntityManager. But I´ve got the strange behaviour, that in one test case - which works (!!!) - only the Hibernate-Session is loaded while openEJB starts up and in the other test case - which does not work - the HibernateEntityManager is used. The persistence.xml is identical in both cases. <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"> <persistence-unit name="IisPU"> <jta-data-source>gerdaDatabase</jta-data-source> <non-jta-data-source>gerdaDatabaseUnmanaged</non-jta-data-source> <provider>org.hibernate.ejb.HibernatePersistence</provider> <properties> <property name="hibernate.hbm2ddl.auto" value="update" /> <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)" /> <property name="hibernate.transaction.manager_lookup_class" value="ch.bmw.service.DynamicTransactionManagerLookup"/> </properties> </persistence-unit> </persistence> Is there any chance to control wheater openEJB should use Hibernate or HibernateEntityManager or what is the strategy of openEJB to decide which implementation to load? Maybe someone can help Thomas -- View this message in context: http://www.nabble.com/How-to-enable-disable-Hibernate-EntityManager-tp21869752p21869752.html Sent from the OpenEJB User mailing list archive at Nabble.com.
