Set DbMapping on group nodes stored in embedded DB. Otherwise, child

nodes are not reachable by name after the application is restarted.
This commit is contained in:
hns 2004-02-04 17:34:58 +00:00
parent c6e5dcbc95
commit b9646ab20d

View file

@ -989,7 +989,7 @@ public final class Node implements INode, Serializable {
/** /**
* This implements the getChild() method of the IPathElement interface * This implements the getChildElement() method of the IPathElement interface
*/ */
public IPathElement getChildElement(String name) { public IPathElement getChildElement(String name) {
if (dbmap != null) { if (dbmap != null) {
@ -1007,7 +1007,12 @@ public final class Node implements INode, Serializable {
if (state != TRANSIENT && rel.otherType != null && rel.otherType.isRelational()) { if (state != TRANSIENT && rel.otherType != null && rel.otherType.isRelational()) {
return nmgr.getNode(this, name, rel); return nmgr.getNode(this, name, rel);
} else { } else {
return getNode(name); INode node = getNode(name);
// set DbMapping for embedded db group nodes
if (node != null && rel.groupby != null) {
node.setDbMapping(dbmap.getGroupbyMapping());
}
return node;
} }
} }