From 92adfec4bd12305eb40a658698c3c0e9728473b0 Mon Sep 17 00:00:00 2001 From: Ivan Garcia Sainz-Aja Date: Wed, 6 Nov 2024 12:31:49 +0100 Subject: [PATCH] Revert "prepares `isAggregate` for polyglot persistence" This reverts commit 3a93d73ff56b9ba1976c9734854e9bd01fbebbc5. --- .../java/io/github/zenwave360/zdl/antlr/ZdlModelValidator.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/io/github/zenwave360/zdl/antlr/ZdlModelValidator.java b/src/main/java/io/github/zenwave360/zdl/antlr/ZdlModelValidator.java index bf44a5d..b5e3bb8 100644 --- a/src/main/java/io/github/zenwave360/zdl/antlr/ZdlModelValidator.java +++ b/src/main/java/io/github/zenwave360/zdl/antlr/ZdlModelValidator.java @@ -223,8 +223,7 @@ private boolean isEntityOrEnum(ZdlModel model, String entityName) { private boolean isAggregate(ZdlModel model, String entityName) { return JSONPath.get(model, "$.aggregates." + entityName) != null - || JSONPath.get(model,"$.entities." + entityName + ".options.aggregate", false) - || JSONPath.get(model,"$.entities." + entityName + ".options.persistence") == null; + || JSONPath.get(model, "$.entities." + entityName + ".options.aggregate", false); } private List methodEventsFlatList(Map method) {