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 9014418..b66dba4 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,7 +894,7 @@ public abstract class ElementManagement { return PropertyElementManagement.getPropertyDocument(value); case ARRAY: - return value; + break; case BINARY: break; @@ -1076,6 +1076,8 @@ public abstract class ElementManagement { if(object != null) { if(object instanceof ODocument) { element.setProperty(key, object, OType.EMBEDDED); + }else if(object instanceof ArrayNode){ + element.setProperty(key, object, OType.EMBEDDEDLIST); }else { element.setProperty(key, object); }