Every DbMapping object must now have a reference to the
application it belongs to.
This commit is contained in:
parent
ef5b901c1e
commit
a8fd428530
1 changed files with 6 additions and 4 deletions
|
@ -88,7 +88,9 @@ public class DbMapping implements Updatable {
|
|||
/**
|
||||
* Create an empty DbMapping
|
||||
*/
|
||||
public DbMapping () {
|
||||
public DbMapping (Application app) {
|
||||
|
||||
this.app = app;
|
||||
|
||||
prop2db = new Hashtable ();
|
||||
db2prop = new Hashtable ();
|
||||
|
@ -502,7 +504,7 @@ public class DbMapping implements Updatable {
|
|||
groupbyMapping = app.getDbMapping (subnodesRel.groupbyprototype);
|
||||
// if mapping doesn' exist or isn't defined, create a new (anonymous internal) one
|
||||
if (groupbyMapping == null)
|
||||
groupbyMapping = new DbMapping ();
|
||||
groupbyMapping = new DbMapping (app);
|
||||
groupbyMapping.subnodesRel = subnodesRel.getGroupbySubnodeRelation ();
|
||||
if (propertiesRel != null)
|
||||
groupbyMapping.propertiesRel = propertiesRel.getGroupbyPropertyRelation ();
|
||||
|
|
Loading…
Add table
Reference in a new issue