提交 8f87a193 编写于 作者: S Serge Rider

Nested attributes update fix


Former-commit-id: 2ae8aff6
上级 945f5203
......@@ -46,7 +46,7 @@ public abstract class DBDAttributeBindingNested extends DBDAttributeBinding impl
return parent.getDataSource();
}
@Nullable
@NotNull
public DBDAttributeBinding getParentObject() {
return parent;
}
......@@ -61,14 +61,12 @@ public abstract class DBDAttributeBindingNested extends DBDAttributeBinding impl
@Override
public boolean isReadOnly() {
assert parent != null;
return parent.getMetaAttribute().isReadOnly();
}
@Nullable
@Override
public DBCEntityMetaData getEntityMetaData() {
assert parent != null;
return parent.getMetaAttribute().getEntityMetaData();
}
......@@ -77,7 +75,6 @@ public abstract class DBDAttributeBindingNested extends DBDAttributeBinding impl
*/
@Nullable
public DBDRowIdentifier getRowIdentifier() {
assert parent != null;
return parent.getRowIdentifier();
}
......
......@@ -389,6 +389,9 @@ public class ResultSetModel {
log.warn("Attribute '" + ownerAttr.getName() + "' has collection type but attribute value is not a collection: " + nestedValue);
}
}
if (ownerValue instanceof DBDComposite) {
((DBDComposite) ownerValue).setAttributeValue(ownerAttr, nestedValue);
}
}
ownerValue = nestedValue;
} catch (DBCException e) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册