openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r676604 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
Date Mon, 14 Jul 2008 14:34:00 GMT
Author: ppoddar
Date: Mon Jul 14 07:33:59 2008
New Revision: 676604

URL: http://svn.apache.org/viewvc?rev=676604&view=rev
Log:
Skip dirty check for nontransactional, runtime-enhanced 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=676604&r1=676603&r2=676604&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
Mon Jul 14 07:33:59 2008
@@ -811,7 +811,7 @@
     public void dirtyCheck() {
         if (!needsDirtyCheck())
             return;
-
+        
         SaveFieldManager saved = getSaveFieldManager();
         if (saved == null)
             throw new InternalException(_loc.get("no-saved-fields",
@@ -837,6 +837,8 @@
             return false;
         if (isNew() && !isFlushed())
             return false;
+        if (!isTransactional())
+            return false;
         return true;
     }
 



Mime
View raw message