mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 11:47:38 +08:00
REST API - Exception when invoke a service which has an entity with @MetaProperty method as an argument #PL-5867
This commit is contained in:
parent
31aab557fa
commit
b418d1b3b9
@ -478,7 +478,8 @@ public class JSONConvertor implements Convertor {
|
||||
MetaClass metaClass = loadInfo.getMetaClass();
|
||||
Entity instance = metadata.create(metaClass);
|
||||
for (MetaProperty metaProperty : metaClass.getProperties()) {
|
||||
instance.setValue(metaProperty.getName(), null);
|
||||
if (!metaProperty.isReadOnly())
|
||||
instance.setValue(metaProperty.getName(), null);
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
@ -459,7 +459,8 @@ public class XMLConvertor2 implements Convertor {
|
||||
MetaClass metaClass = loadInfo.getMetaClass();
|
||||
Entity instance = metadata.create(metaClass);
|
||||
for (MetaProperty metaProperty : metaClass.getProperties()) {
|
||||
instance.setValue(metaProperty.getName(), null);
|
||||
if (!metaProperty.isReadOnly())
|
||||
instance.setValue(metaProperty.getName(), null);
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user