Try to workaround bug where getChildElement doesn't work for named
child objects in the embedded non-relational database.
This commit is contained in:
parent
8080570bf7
commit
ad6221e101
1 changed files with 6 additions and 2 deletions
|
@ -909,8 +909,12 @@ public final class Node implements INode, Serializable {
|
||||||
if (rel != null)
|
if (rel != null)
|
||||||
return (IPathElement) getNode (name, false);
|
return (IPathElement) getNode (name, false);
|
||||||
rel = dbmap.getSubnodeRelation ();
|
rel = dbmap.getSubnodeRelation ();
|
||||||
if (rel != null && rel.groupby == null && rel.accessor != null)
|
if (rel != null && rel.groupby == null && rel.accessor != null) {
|
||||||
return (IPathElement) nmgr.getNode (this, name, rel);
|
if (rel.otherType != null && rel.otherType.isRelational ())
|
||||||
|
return (IPathElement) nmgr.getNode (this, name, rel);
|
||||||
|
else
|
||||||
|
return (IPathElement) getNode (name, false);
|
||||||
|
}
|
||||||
return (IPathElement) getSubnode (name);
|
return (IPathElement) getSubnode (name);
|
||||||
} else {
|
} else {
|
||||||
// no dbmapping - just try child collection first, then named property.
|
// no dbmapping - just try child collection first, then named property.
|
||||||
|
|
Loading…
Add table
Reference in a new issue