From 15127efd4d8232f449ba900ef97168ae70ca2514 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 3 Jan 2001 19:31:46 +0000 Subject: [PATCH] (re)set relations to null if not specified --- src/helma/objectmodel/DbMapping.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/helma/objectmodel/DbMapping.java b/src/helma/objectmodel/DbMapping.java index b4c859d2..7708fdcd 100644 --- a/src/helma/objectmodel/DbMapping.java +++ b/src/helma/objectmodel/DbMapping.java @@ -133,7 +133,8 @@ public class DbMapping { parent = parentRel.other; else parent = (DbMapping) app.getDbMapping (parentMapping); - } + } else + parentRel = null; String subnodeMapping = props.getProperty ("_subnodes"); if (subnodeMapping != null) { @@ -142,7 +143,8 @@ public class DbMapping { subnodes = subnodesRel.other; else subnodes = (DbMapping) app.getDbMapping (subnodeMapping); - } + } else + subnodesRel = null; String propertiesMapping = props.getProperty ("_properties"); if (propertiesMapping != null) { @@ -154,7 +156,8 @@ public class DbMapping { // take over groupby flag from subnodes, if properties are subnodes if (propertiesRel.subnodesAreProperties && subnodesRel != null) propertiesRel.groupby = subnodesRel.groupby; - } + } else + propertiesRel = null; IServer.getLogger().log ("rewiring: "+parent+" -> "+this+" -> "+subnodes); }