From b66f0e15a3927bab2c93ed8ec1bc0e750f5856b0 Mon Sep 17 00:00:00 2001 From: Tijs Rademakers Date: Mon, 8 Jul 2024 15:42:05 +0200 Subject: [PATCH] Fix test --- .../cmmn/engine/impl/db/EntityDependencyOrder.java | 2 ++ .../dmn/engine/impl/db/EntityDependencyOrder.java | 2 ++ .../org/flowable/common/db/mapping/entity/ChangeLog.xml | 2 +- .../eventregistry/impl/db/EntityDependencyOrder.java | 2 ++ .../spring/boot/db/EngineMappingsValidationTest.java | 9 +++++++-- .../spring/boot/db/EntityParameterTypesOverview.java | 6 ++++++ 6 files changed, 20 insertions(+), 3 deletions(-) diff --git a/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/db/EntityDependencyOrder.java b/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/db/EntityDependencyOrder.java index 6524a1bfa80..fa92b5da877 100644 --- a/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/db/EntityDependencyOrder.java +++ b/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/db/EntityDependencyOrder.java @@ -29,6 +29,7 @@ import org.flowable.cmmn.engine.impl.persistence.entity.PlanItemInstanceEntityImpl; import org.flowable.cmmn.engine.impl.persistence.entity.SentryPartInstanceEntityImpl; import org.flowable.common.engine.impl.persistence.entity.ByteArrayEntityImpl; +import org.flowable.common.engine.impl.persistence.entity.ChangeLogEntityImpl; import org.flowable.common.engine.impl.persistence.entity.Entity; import org.flowable.common.engine.impl.persistence.entity.PropertyEntityImpl; import org.flowable.entitylink.service.impl.persistence.entity.EntityLinkEntityImpl; @@ -63,6 +64,7 @@ public class EntityDependencyOrder { static { DELETE_ORDER.add(PropertyEntityImpl.class); + DELETE_ORDER.add(ChangeLogEntityImpl.class); DELETE_ORDER.add(BatchPartEntityImpl.class); DELETE_ORDER.add(BatchEntityImpl.class); DELETE_ORDER.add(JobEntityImpl.class); diff --git a/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/db/EntityDependencyOrder.java b/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/db/EntityDependencyOrder.java index 2b9bada10ad..5c3726852f6 100644 --- a/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/db/EntityDependencyOrder.java +++ b/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/db/EntityDependencyOrder.java @@ -16,6 +16,7 @@ import java.util.Collections; import java.util.List; +import org.flowable.common.engine.impl.persistence.entity.ChangeLogEntityImpl; import org.flowable.common.engine.impl.persistence.entity.Entity; import org.flowable.common.engine.impl.persistence.entity.PropertyEntityImpl; import org.flowable.dmn.engine.impl.persistence.entity.DecisionEntityImpl; @@ -31,6 +32,7 @@ public class EntityDependencyOrder { static { DELETE_ORDER.add(PropertyEntityImpl.class); + DELETE_ORDER.add(ChangeLogEntityImpl.class); DELETE_ORDER.add(HistoricDecisionExecutionEntityImpl.class); DELETE_ORDER.add(DmnResourceEntityImpl.class); DELETE_ORDER.add(DmnDeploymentEntityImpl.class); diff --git a/modules/flowable-engine-common/src/main/resources/org/flowable/common/db/mapping/entity/ChangeLog.xml b/modules/flowable-engine-common/src/main/resources/org/flowable/common/db/mapping/entity/ChangeLog.xml index e5a7f456686..4e91d976363 100644 --- a/modules/flowable-engine-common/src/main/resources/org/flowable/common/db/mapping/entity/ChangeLog.xml +++ b/modules/flowable-engine-common/src/main/resources/org/flowable/common/db/mapping/entity/ChangeLog.xml @@ -7,7 +7,7 @@ - +