#782 - History Many-To-Many Lazy-Loads fail

This commit is contained in:
Robin Bygrave
2016-07-25 23:31:02 +12:00
parent b763f4c875
commit 6108ef484b
6 changed files with 47 additions and 2 deletions
@@ -33,6 +33,22 @@ public final class SqlTreeNodeRoot extends SqlTreeNodeBean {
this.includeJoin = null;
}
/**
* Set AsOf support (at root level).
*/
public void addAsOfTableAlias(SpiQuery<?> query) {
if (desc.isHistorySupport()) {
query.setAsOfBaseTable();
query.incrementAsOfTableCount();
}
if (lazyLoadParent != null && lazyLoadParent.isManyToManyWithHistory()) {
query.incrementAsOfTableCount();
}
for (int i = 0; i < children.length; i++) {
children[i].addAsOfTableAlias(query);
}
}
/**
* For the root node there is no join type or on clause etc.
*/