Uploaded image for project: 'Empire-DB'
  1. Empire-DB
  2. EMPIREDB-402

Allow Join definition using on(...) syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Core
    • 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)))

       

       

      Attachments

        Activity

          People

            doebele Rainer Döbele
            doebele Rainer Döbele
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: