Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2871

QualifierTranslator breaks on a relationship with a compound FK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.2, 4.2.1
    • 4.2.2, 5.0-M2
    • None
    • None

    Description

      Expression like this:

      Expression exp = CompoundFkTestEntity.TO_COMPOUND_PK.eq(objectId1)
                      .or(CompoundFkTestEntity.TO_COMPOUND_PK.eq(objectId2)
      

      Completely breaks QualifierTranslator and produces incorrect SQL like this:
      ( ( t0.F_KEY1 = 'PK1' ) AND ( t0.F_KEY2 = 'PK2' ) ) OR ( 'PK4' 'PK3' )

      Note that the first equality translates completely fine, it's the second (and further) that breaks everything.

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: