FIX: append extraWhere to join

This commit is contained in:
Roland Praml
2018-11-10 23:42:02 +01:00
parent 1b2bfc5df8
commit c5536aaeec
4 changed files with 30 additions and 26 deletions
@@ -41,6 +41,22 @@ final class SqlTreeNodeManyRoot extends SqlTreeNodeBean {
return detailBean;
}
/**
* append extraWhere to the join.
*/
@Override
protected SqlJoinType appendFromAsJoin(DbSqlContext ctx, SqlJoinType joinType) {
SqlJoinType join = super.appendFromAsJoin(ctx, joinType);
super.appendExtraWhere(ctx);
return join;
}
@Override
protected void appendExtraWhere(DbSqlContext ctx) {
// extraWhere is already appended to the tableJoin
}
/**
* Force outer join for everything after the many property.
*/