Added comment
This commit is contained in:
parent
88333c893c
commit
1235341295
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue