Fixing #24225
This commit is contained in:
parent
0edf127a53
commit
88333c893c
|
@ -894,7 +894,12 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
||||||
return PropertyElementManagement.getPropertyDocument(value);
|
return PropertyElementManagement.getPropertyDocument(value);
|
||||||
|
|
||||||
case ARRAY:
|
case ARRAY:
|
||||||
return value;
|
List<Object> list = new ArrayList<>();
|
||||||
|
ArrayNode arrayNode = (ArrayNode) value;
|
||||||
|
for(JsonNode node : arrayNode) {
|
||||||
|
list.add(getObjectFromJsonNode(node));
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
|
||||||
case BINARY:
|
case BINARY:
|
||||||
break;
|
break;
|
||||||
|
@ -1076,9 +1081,13 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
||||||
if(object != null) {
|
if(object != null) {
|
||||||
if(object instanceof ODocument) {
|
if(object instanceof ODocument) {
|
||||||
element.setProperty(key, object, OType.EMBEDDED);
|
element.setProperty(key, object, OType.EMBEDDED);
|
||||||
}else if(object instanceof ArrayNode){
|
/*
|
||||||
|
* Update is not allowed,
|
||||||
|
* hence bug https://github.com/orientechnologies/orientdb/issues/7354 cannot occur
|
||||||
|
*/
|
||||||
|
} else if(object instanceof List){
|
||||||
element.setProperty(key, object, OType.EMBEDDEDLIST);
|
element.setProperty(key, object, OType.EMBEDDEDLIST);
|
||||||
}else {
|
} else {
|
||||||
element.setProperty(key, object);
|
element.setProperty(key, object);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue