r9887 - helma/helma/trunk/src/helma/objectmodel/db
[email protected] Mon, 14 Sep 2009 21:56:01 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090914195601.73B743D0E3@mia> |
Author: hannes
Date: 2009-09-14 21:56:01 +0200 (Mon, 14 Sep 2009)
New Revision: 9887
Modified:
helma/helma/trunk/src/helma/objectmodel/db/DbMapping.java
Log:
Make sure group node mappings have their last type change field set. This could lead to content nodes not being fetched.
Details at http://dev.helma.org/trac/helma/changeset/9887
Modified: helma/helma/trunk/src/helma/objectmodel/db/DbMapping.java
===================================================================
--- helma/helma/trunk/src/helma/objectmodel/db/DbMapping.java 2009-09-14 14:45:45 UTC (rev 9886)
+++ helma/helma/trunk/src/helma/objectmodel/db/DbMapping.java 2009-09-14 19:56:01 UTC (rev 9887)
@@ -758,7 +758,7 @@
* 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 @@
// 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