From 67b705117a9be0a3828937c0eaaab51caa131110 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 14 Sep 2009 19:56:01 +0000 Subject: [PATCH] Make sure group node mappings have their last type change field set. This could lead to content nodes not being fetched. --- src/helma/objectmodel/db/DbMapping.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helma/objectmodel/db/DbMapping.java b/src/helma/objectmodel/db/DbMapping.java index 914079de..21e4d4f2 100644 --- a/src/helma/objectmodel/db/DbMapping.java +++ b/src/helma/objectmodel/db/DbMapping.java @@ -758,7 +758,7 @@ public final class DbMapping { * db-mapping with the right relations to create the group-by nodes */ public synchronized DbMapping getGroupbyMapping() { - if ((subRelation == null) && (parentMapping != null)) { + if (subRelation == null && parentMapping != null) { return parentMapping.getGroupbyMapping(); } else if (subRelation == null || subRelation.groupby == null) { return null; @@ -776,6 +776,7 @@ public final class DbMapping { // 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, subRelation.groupbyPrototype); + groupbyMapping.lastTypeChange = this.lastTypeChange; groupbyMapping.isGroup = true; // set subnode and property relations