db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject [db-jdo] 26/43: JDO-412: set retainValues=false to make sure the instance gets loaded in the next tx and jdoPostLoad is called
Date Fri, 07 May 2021 23:12:08 GMT
This is an automated email from the ASF dual-hosted git repository.

clr pushed a commit to branch origin/2.0.1
in repository https://gitbox.apache.org/repos/asf/db-jdo.git

commit 7ee075cee221ea10972ebe290ff1cf8d57a6fb5d
Author: Michael Bouschen <mbo@apache.org>
AuthorDate: Tue Oct 3 19:51:47 2006 +0000

    JDO-412: set retainValues=false to make sure the instance gets loaded in the next tx and
jdoPostLoad is called
---
 .../org/apache/jdo/tck/api/instancecallbacks/CallingJdoPostload.java     | 1 +
 .../ModificationOfNontransactionalNonpersistentFields.java               | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/CallingJdoPostload.java
b/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/CallingJdoPostload.java
index f948c66..9a431ca 100644
--- a/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/CallingJdoPostload.java
+++ b/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/CallingJdoPostload.java
@@ -80,6 +80,7 @@ public class CallingJdoPostload extends JDO_Test {
     {
         pm = getPM();
         Transaction t = pm.currentTransaction();
+        t.setRetainValues(false);
 
         InstanceCallbackNonPersistFdsClass.initializeStaticsForTest();
 
diff --git a/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/ModificationOfNontransactionalNonpersistentFields.java
b/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/ModificationOfNontransactionalNonpersistentFields.java
index e09f996..56bc18d 100644
--- a/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/ModificationOfNontransactionalNonpersistentFields.java
+++ b/tck20/src/java/org/apache/jdo/tck/api/instancecallbacks/ModificationOfNontransactionalNonpersistentFields.java
@@ -76,6 +76,7 @@ public class ModificationOfNontransactionalNonpersistentFields extends JDO_Test
     {
         pm = getPM();
         Transaction t = pm.currentTransaction(); 
+        t.setRetainValues(false);
 
         InstanceCallbackNonPersistFdsClass.initializeStaticsForTest();
         

Mime
View raw message