Added comment

This commit is contained in:
Luca Frosini 2022-12-05 16:24:38 +01:00
parent 88333c893c
commit 1235341295
1 changed files with 6 additions and 2 deletions

View File

@ -894,6 +894,10 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
return PropertyElementManagement.getPropertyDocument(value);
case ARRAY:
/*
* Due to bug https://github.com/orientechnologies/orientdb/issues/7354
* we should not support ArrayList
*/
List<Object> list = new ArrayList<>();
ArrayNode arrayNode = (ArrayNode) value;
for(JsonNode node : arrayNode) {
@ -1082,8 +1086,8 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
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);