Author: heiko.braun(a)jboss.com
Date: 2010-09-27 05:09:34 -0400 (Mon, 27 Sep 2010)
New Revision: 989
Modified:
branches/ODE/RiftSaw-ODE-trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/BpelDAOConnectionFactoryImpl.java
Log:
Expose EntityManagerFactory through config properties (workaround)
Modified:
branches/ODE/RiftSaw-ODE-trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/BpelDAOConnectionFactoryImpl.java
===================================================================
---
branches/ODE/RiftSaw-ODE-trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/BpelDAOConnectionFactoryImpl.java 2010-09-27
09:03:31 UTC (rev 988)
+++
branches/ODE/RiftSaw-ODE-trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/BpelDAOConnectionFactoryImpl.java 2010-09-27
09:09:34 UTC (rev 989)
@@ -52,6 +52,9 @@
Map emfProperties = HibernateUtil.buildConfig(OdeConfigProperties.PROP_DAOCF +
".", odeConfig, _txm, _ds);
_emf = Persistence.createEntityManagerFactory("ode-bpel",
emfProperties);
+ // dirty hack
+ odeConfig.put("ode.emf", _emf);
+
}
public BpelDAOConnection getConnection() {