use getter methods on relation, since the fields are
no longer defined as transient
This commit is contained in:
parent
6a1aaaea58
commit
e466423826
1 changed files with 2 additions and 2 deletions
|
@ -377,7 +377,7 @@ public class TransientNode implements INode, Serializable {
|
||||||
// check if we have to create a virtual node
|
// check if we have to create a virtual node
|
||||||
if (prop == null && dbmap != null) {
|
if (prop == null && dbmap != null) {
|
||||||
Relation rel = dbmap.getPropertyRelation (propname);
|
Relation rel = dbmap.getPropertyRelation (propname);
|
||||||
if (rel != null && rel.virtual) {
|
if (rel != null && rel.isVirtual ()) {
|
||||||
prop = makeVirtualNode (propname, rel);
|
prop = makeVirtualNode (propname, rel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -385,7 +385,7 @@ public class TransientNode implements INode, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Property makeVirtualNode (String propname, Relation rel) {
|
private Property makeVirtualNode (String propname, Relation rel) {
|
||||||
INode node = new helma.objectmodel.db.Node (rel.propName, rel.prototype, dbmap.getWrappedNodeManager());
|
INode node = new helma.objectmodel.db.Node (rel.getPropName (), rel.getPrototype (), dbmap.getWrappedNodeManager());
|
||||||
// node.setState (TRANSIENT);
|
// node.setState (TRANSIENT);
|
||||||
// make a db mapping good enough that the virtual node finds its subnodes
|
// make a db mapping good enough that the virtual node finds its subnodes
|
||||||
DbMapping dbm = new DbMapping ();
|
DbMapping dbm = new DbMapping ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue