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:
parent
c6e5dcbc95
commit
b9646ab20d
1 changed files with 11 additions and 6 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue