groupbyMapping.propertiesRel = subnodesRel.getGroupbyPropertyRelation (); groupbyMapping.typename = subnodesRel.groupbyprototype;
groupbyMapping.propRelation = subRelation.getGroupbyPropertyRelation (); groupbyMapping.typename = subRelation.groupbyPrototype;
    private void initGroupbyMapping () {	// if a prototype is defined for groupby nodes, use that	// if mapping doesn' exist or isn't defined, create a new (anonymous internal) one	groupbyMapping = new DbMapping (app);	// If a mapping is defined, make the internal mapping inherit from	// the defined named prototype.	if (subnodesRel.groupbyprototype != null)	    groupbyMapping.parentMapping = app.getDbMapping (subnodesRel.groupbyprototype);	groupbyMapping.subnodesRel = subnodesRel.getGroupbySubnodeRelation ();	if (propertiesRel != null)	    groupbyMapping.propertiesRel = propertiesRel.getGroupbyPropertyRelation ();	else	    groupbyMapping.propertiesRel = subnodesRel.getGroupbyPropertyRelation ();	groupbyMapping.typename = subnodesRel.groupbyprototype;    }