Every DbMapping object must now have a reference to the

application it belongs to.
This commit is contained in:
hns 2001-12-06 22:35:24 +00:00
parent ef5b901c1e
commit a8fd428530

View file

@ -88,7 +88,9 @@ public class DbMapping implements Updatable {
/** /**
* Create an empty DbMapping * Create an empty DbMapping
*/ */
public DbMapping () { public DbMapping (Application app) {
this.app = app;
prop2db = new Hashtable (); prop2db = new Hashtable ();
db2prop = new Hashtable (); db2prop = new Hashtable ();
@ -502,7 +504,7 @@ public class DbMapping implements Updatable {
groupbyMapping = app.getDbMapping (subnodesRel.groupbyprototype); groupbyMapping = app.getDbMapping (subnodesRel.groupbyprototype);
// if mapping doesn' exist or isn't defined, create a new (anonymous internal) one // if mapping doesn' exist or isn't defined, create a new (anonymous internal) one
if (groupbyMapping == null) if (groupbyMapping == null)
groupbyMapping = new DbMapping (); groupbyMapping = new DbMapping (app);
groupbyMapping.subnodesRel = subnodesRel.getGroupbySubnodeRelation (); groupbyMapping.subnodesRel = subnodesRel.getGroupbySubnodeRelation ();
if (propertiesRel != null) if (propertiesRel != null)
groupbyMapping.propertiesRel = propertiesRel.getGroupbyPropertyRelation (); groupbyMapping.propertiesRel = propertiesRel.getGroupbyPropertyRelation ();