removed the check that prevented transient

nodes from obtaining virtual collection nodes.
This commit is contained in:
hns 2001-08-24 15:19:34 +00:00
parent fd9691084e
commit 6e65ecd242

View file

@ -1225,17 +1225,9 @@ public final class Node implements INode, Serializable {
// the property does not exist in our propmap - see if we can create it on the fly,
// either because it is mapped from a relational database or defined as virtual node
if (prop == null && dbmap != null && state != TRANSIENT && state != NEW) {
if (prop == null && dbmap != null) {
Relation prel = dbmap.getPropertyRelation (propname);
Relation srel = dbmap.getSubnodeRelation ();
/* if (prel != null && prel.virtual && prel.otherType != null && !prel.otherType.isRelational ()) {
Node pn = (Node) createNode (propname);
if (prel.prototype != null) {
pn.setPrototype (prel.prototype);
}
prop = (Property) propMap.get (propname);
} else { */
if (prel == null && srel != null && srel.groupby != null)
prel = srel;
if (prel == null)
@ -1256,8 +1248,8 @@ public final class Node implements INode, Serializable {
// wasn't a node after all
}
}
// }
}
if (prop == null && inherit && getParent () != null && state != TRANSIENT) {
prop = ((Node) getParent ()).getProperty (propname, inherit);
}