Implemented: Add a mechanism to prevent the usage of EntitySyncRemove
Complete the previous commit on revision [1] to add mechanism to prevent
the usage of EntitySyncRemove also on function Delegator.removeByPrimaryKey
[1]
+/*
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -966,7 +967,9 @@ public class GenericDelegator implements Delegator {
ecaRunner.evalRules(EntityEcaHandler.EV_CACHE_CLEAR, EntityEcaHandler.OP_REMOVE, primaryKey, false);
this.clearCacheLine(primaryKey);
+ if (saveEntitySyncRemoveInfo) {
this.saveEntitySyncRemoveInfo(primaryKey);
+ }
if (testMode) {
if (removedEntity != null) {
