diff --git a/src/helma/objectmodel/db/DbMapping.java b/src/helma/objectmodel/db/DbMapping.java index 61d4081f..58606d6e 100644 --- a/src/helma/objectmodel/db/DbMapping.java +++ b/src/helma/objectmodel/db/DbMapping.java @@ -488,7 +488,11 @@ public class DbMapping implements Updatable { return null; } - public DbMapping getGroupbyMapping () { + /** + * If subnodes are grouped by one of their properties, return the + * db-mapping with the right relations to create the group-by nodes + */ + public synchronized DbMapping getGroupbyMapping () { if (subnodesRel == null || subnodesRel.groupby == null) return null; if (groupbyMapping == null) {