cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r512316 - /cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/ResourceLocalEntityManager.java
Date Tue, 27 Feb 2007 16:47:54 GMT
Author: aadamchik
Date: Tue Feb 27 08:47:52 2007
New Revision: 512316

URL: http://svn.apache.org/viewvc?view=rev&rev=512316
Log:
fixing bug in 'contains' method we can't check object context equality due to decoarators
- now fixing it for real

Modified:
    cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/ResourceLocalEntityManager.java

Modified: cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/ResourceLocalEntityManager.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/ResourceLocalEntityManager.java?view=diff&rev=512316&r1=512315&r2=512316
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/ResourceLocalEntityManager.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/ResourceLocalEntityManager.java
Tue Feb 27 08:47:52 2007
@@ -254,7 +254,7 @@
     public boolean contains(Object entity) {
         checkClosed();
         Persistent p = (Persistent) entity;
-        return p.getObjectContext().getGraphManager().getNode(p.getObjectId()) == p;
+        return context.getGraphManager().getNode(p.getObjectId()) == p;
     }
 
     /**



Mime
View raw message