openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dian...@apache.org
Subject svn commit: r1332025 - /openjpa/branches/2.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java
Date Sun, 29 Apr 2012 23:40:10 GMT
Author: dianner
Date: Sun Apr 29 23:40:10 2012
New Revision: 1332025

URL: http://svn.apache.org/viewvc?rev=1332025&view=rev
Log:
OPENJPA-2142 Fix copy problem

Modified:
    openjpa/branches/2.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java

Modified: openjpa/branches/2.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java?rev=1332025&r1=1332024&r2=1332025&view=diff
==============================================================================
--- openjpa/branches/2.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java
(original)
+++ openjpa/branches/2.1.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AttachStrategy.java
Sun Apr 29 23:40:10 2012
@@ -93,7 +93,7 @@ abstract class AttachStrategy
             newInstance = pc.pcNewInstance(null, appId, false);
 
         StateManagerImpl sm = (StateManagerImpl) manager.getBroker().persist
-                (newInstance, appId, explicit, manager.getBehavior());
+                (newInstance, appId, explicit, manager.getBehavior(), !manager.getCopyNew());
             
         attachPCKeyFields(pc, sm, meta, manager);
             



Mime
View raw message