revert removing findWithUpdate
authorAndreas Müller <a.mueller@bgbm.org>
Wed, 24 Jun 2020 23:55:41 +0000 (01:55 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Wed, 24 Jun 2020 23:55:41 +0000 (01:55 +0200)
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/cache/ConversationalTransientEntityCacher.java
eu.etaxonomy.taxeditor.cdmlib/src/main/java/org/springframework/remoting/httpinvoker/CachingHttpInvokerProxyFactoryBean.java

index 74b20879d0e897d99f083f6bec6887437a5ed3ad..a8cb35b12b3b4e98f69435fbe2e59450b53e1223 100755 (executable)
@@ -32,7 +32,7 @@ public class ConversationalTransientEntityCacher extends CdmTransientEntityCache
         super(sessionOwner);
     }
     private CdmBase load(CdmEntityIdentifier cei) {
-        return CdmApplicationState.getCommonService().find(cei.getCdmClass(), cei.getId());
+        return CdmApplicationState.getCommonService().findWithUpdate(cei.getCdmClass(), cei.getId());
     }
 
     public UpdateResult load(UpdateResult result, boolean update) {
index 2daea3c4052df72133e6d31a872c681b19bbfb2d..fdf7f1acc8d106867d76ddcdc5557233e3c0e6bb 100644 (file)
@@ -52,6 +52,7 @@ public class CachingHttpInvokerProxyFactoryBean extends HttpInvokerProxyFactoryB
     static {
         persistingMethods.add("merge");
         persistingMethods.add("save");
+        persistingMethods.add("findWithUpdate");
         persistingMethods.add("loadWithUpdate");
         measureDuration = System.getProperty(PROP_KEY_MEASURE_DURATION) != null;
     }