Ported changes made on master

This commit is contained in:
Luca Frosini 2023-02-02 14:28:54 +01:00
parent ac54fe6694
commit a4b9d14707
1 changed files with 7 additions and 1 deletions

View File

@ -1085,6 +1085,12 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
if(object != null) {
if(object instanceof ODocument) {
element.setProperty(key, object, OType.EMBEDDED);
/*
* 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);
} else {
element.setProperty(key, object);
}