Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The definition of joins so far requires the provision of a comma separated list of columns or compare expressions which is unintuitive especially for complex join expressions with multiple conditions.
Hence, as an alternative, the sql "on" keyword should be offered to define a join.
e.g. the current expression:
.joinLeft(MODEL.ID, SALES.MODEL_ID, SALES.YEAR.is(2021))
can alternatively be written as:
.joinLeft(MODEL.ID.on(SALES.MODEL_ID).and(SALES.YEAR.is(2021)))