Use Relation.createOnDemand() to find out if we should do a NodeManager.getNode[ByRelation]()

in Node.getProperty(). This was there in the old version of Node.getProperty() but was
kicked out in the recent rewrite, which caused NodeManager.getNode() to be called when it
shouldn't.
This commit is contained in:
hns 2003-12-03 11:56:04 +00:00
parent 9d6bd72355
commit 2a8a21f822

View file

@ -1671,8 +1671,7 @@ public final class Node implements INode, Serializable {
if (rel == null && dbmap != null && state != TRANSIENT) { if (rel == null && dbmap != null && state != TRANSIENT) {
rel = dbmap.getSubnodeRelation(); rel = dbmap.getSubnodeRelation();
if (rel != null && rel.otherType != null && if (rel != null && rel.createOnDemand()) {
(rel.groupby != null || rel.accessName != null)) {
Node n = nmgr.getNode(this, propname, rel); Node n = nmgr.getNode(this, propname, rel);
if (n != null) { if (n != null) {