From 1235341295adb338327ea8330d826ab802061716 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Mon, 5 Dec 2022 16:24:38 +0100 Subject: [PATCH] Added comment --- .../instances/base/ElementManagement.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/instances/base/ElementManagement.java b/src/main/java/org/gcube/informationsystem/resourceregistry/instances/base/ElementManagement.java index 924057a..f4e6323 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/instances/base/ElementManagement.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/instances/base/ElementManagement.java @@ -894,6 +894,10 @@ public abstract class ElementManagement { return PropertyElementManagement.getPropertyDocument(value); case ARRAY: + /* + * Due to bug https://github.com/orientechnologies/orientdb/issues/7354 + * we should not support ArrayList + */ List list = new ArrayList<>(); ArrayNode arrayNode = (ArrayNode) value; for(JsonNode node : arrayNode) { @@ -1082,8 +1086,8 @@ public abstract class ElementManagement { if(object instanceof ODocument) { element.setProperty(key, object, OType.EMBEDDED); /* - * Update is not allowed, - * hence bug https://github.com/orientechnologies/orientdb/issues/7354 cannot occur + * Due to bug https://github.com/orientechnologies/orientdb/issues/7354 + * we should not support ArrayList */ } else if(object instanceof List){ element.setProperty(key, object, OType.EMBEDDEDLIST);