openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ss...@apache.org
Subject svn commit: r683805 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
Date Fri, 08 Aug 2008 02:42:36 GMT
Author: ssegu
Date: Thu Aug  7 19:42:36 2008
New Revision: 683805

URL: http://svn.apache.org/viewvc?rev=683805&view=rev
Log:
OPENJPA-680. Consistent with the beforeRefresh call check for new unflushed instances

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java?rev=683805&r1=683804&r2=683805&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
Thu Aug  7 19:42:36 2008
@@ -362,7 +362,7 @@
      */
     protected boolean load(FetchConfiguration fetch, int loadMode,
         BitSet exclude, Object sdata, boolean forWrite) {
-        if (!forWrite && (!isPersistent() || isNew() || isDeleted()))
+        if (!forWrite && (!isPersistent() || (isNew() && !isFlushed())  ||
isDeleted()))
             return false;
 
         // if any fields being loaded, do state transitions for read



Mime
View raw message