From 1ca8ff7363d6df8db36c1747b14395cc855306d2 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 25 Jul 2001 16:43:32 +0000 Subject: [PATCH] * added check if prototype exists * set prototype on groupby node, if specified in type.properties --- src/helma/objectmodel/db/Node.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/helma/objectmodel/db/Node.java b/src/helma/objectmodel/db/Node.java index fe20a24d..1fff6aa3 100644 --- a/src/helma/objectmodel/db/Node.java +++ b/src/helma/objectmodel/db/Node.java @@ -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 ());