Fixed bug introduced to fix embedded set
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@146944 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
77f241016b
commit
0bd37933bc
|
@ -759,15 +759,22 @@ public abstract class ERManagement<ERType extends ER, El extends Element> {
|
|||
Object object = properties.get(key);
|
||||
if(!oClass.existsProperty(key)){
|
||||
|
||||
boolean set = false;
|
||||
|
||||
if(object instanceof ODocument){
|
||||
ODocument oDocument = (ODocument) object;
|
||||
((OrientElement) element).setProperty(key, oDocument, OType.EMBEDDED);
|
||||
set = true;
|
||||
}
|
||||
|
||||
if(object instanceof ArrayList){
|
||||
((OrientElement) element).setProperty(key, object, OType.EMBEDDEDLIST);
|
||||
set = true;
|
||||
}
|
||||
|
||||
if(!set){
|
||||
element.setProperty(key, object);
|
||||
}
|
||||
|
||||
} else{
|
||||
element.setProperty(key, object);
|
||||
|
|
Loading…
Reference in New Issue