Details
Description
When qualifier with DbPath expression attached to DbEntity (e.g. programmatically set ExpressionFactory.matchDbExpression() qualifier) used in JOIN clause, it generates wrong SQL.
For example: JOIN GROUP t2 ON (t1.GROUPID = t2.GROUPID AND t0.DELETED = 0)
Note t0 alias used with DELETED field, t2 should be used instead.
Everything works fine if ObjPath used in qualifier.