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) {