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); return PropertyElementManagement.getPropertyDocument(value);
case ARRAY: case ARRAY:
/*
* Due to bug https://github.com/orientechnologies/orientdb/issues/7354
* we should not support ArrayList
*/
List<Object> list = new ArrayList<>(); List<Object> list = new ArrayList<>();
ArrayNode arrayNode = (ArrayNode) value; ArrayNode arrayNode = (ArrayNode) value;
for(JsonNode node : arrayNode) { for(JsonNode node : arrayNode) {
@ -1082,8 +1086,8 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
if(object instanceof ODocument) { if(object instanceof ODocument) {
element.setProperty(key, object, OType.EMBEDDED); element.setProperty(key, object, OType.EMBEDDED);
/* /*
* Update is not allowed, * Due to bug https://github.com/orientechnologies/orientdb/issues/7354
* hence bug https://github.com/orientechnologies/orientdb/issues/7354 cannot occur * we should not support ArrayList
*/ */
} else if(object instanceof List){ } else if(object instanceof List){
element.setProperty(key, object, OType.EMBEDDEDLIST); element.setProperty(key, object, OType.EMBEDDEDLIST);