* added check if prototype exists

* set prototype on groupby node, if specified in type.properties
This commit is contained in:
hns 2001-07-25 16:43:32 +00:00
parent e2390da037
commit 1ca8ff7363

View file

@ -158,6 +158,8 @@ public class Node implements INode, Serializable {
m = nmgr.getDbMapping (protoName);
if (m == null) {
// invalid prototype name!
System.err.println ("Warning: Invalid prototype name: "+protoName+" - using default");
m = dbmap;
}
}
}
@ -960,6 +962,8 @@ public class Node implements INode, Serializable {
if (gsrel.order != null)
snrel += " ORDER BY "+gsrel.order;
node.setSubnodeRelation (snrel);
// set prototype of groupby-node
node.setPrototype (gsrel.prototype);
} else {
setNode (sid, node);
subnodes.add (node.getID ());