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