openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r1354226 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
Date Tue, 26 Jun 2012 20:56:43 GMT
Author: ppoddar
Date: Tue Jun 26 20:56:43 2012
New Revision: 1354226

URL: http://svn.apache.org/viewvc?rev=1354226&view=rev
Log:
Put an entity manager as the user object in a broker

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java?rev=1354226&r1=1354225&r2=1354226&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/EntityManagerImpl.java
Tue Jun 26 20:56:43 2012
@@ -131,7 +131,7 @@ public class EntityManagerImpl
         _emf = factory;
         _broker = new DelegatingBroker(broker, _ret);
         _broker.setImplicitBehavior(this, _ret);
-        
+        _broker.putUserObject(JPAFacadeHelper.EM_KEY, this);
         _convertPositionalParams =
             factory.getConfiguration().getCompatibilityInstance().getConvertPositionalParametersToNamed();
     }



Mime
View raw message