Cayenne
  1. Cayenne
  2. CAY-1582

EJBQL queries are broken for vertical inheritance entities

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: Undefined future
    • Component/s: Core Library
    • Labels:
      None

      Description

      EJBQLQuery doesn't pay attention to vertical inheritance attributes, so queries results are different from equivalent SelectQuery results. Some EJBQL queries with flattened attributes involving inherited entities are failing at all due to invalid SQL expression generated.

      1. org.apache.cayenne.access.VerticalInheritanceTest.txt
        5 kB
        Victor Antonovich
      2. vertical_inheritance_ejbql_fix_2.patch
        7 kB
        Victor Antonovich
      3. vertical_inheritance_ejbql_fix.patch
        5 kB
        Victor Antonovich
      4. vertical_inheritance_ejbql_test_2.patch
        24 kB
        Victor Antonovich
      5. vertical_inheritance_ejbql_test.patch
        23 kB
        Victor Antonovich

        Activity

        Victor Antonovich created issue -
        Victor Antonovich made changes -
        Field Original Value New Value
        Attachment vertical_inheritance_ejbql_test.patch [ 12483585 ]
        Attachment org.apache.cayenne.access.VerticalInheritanceTest.txt [ 12483586 ]
        Victor Antonovich made changes -
        Attachment vertical_inheritance_ejbql_fix.patch [ 12483587 ]
        Victor Antonovich made changes -
        Andrus Adamchik made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 3.1M3 [ 12316228 ]
        Resolution Fixed [ 1 ]
        Andrus Adamchik made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Assignee Andrus Adamchik [ andrus ]
        Andrus Adamchik made changes -
        Fix Version/s Undefined future [ 12313763 ]
        Fix Version/s 3.1M3 [ 12316228 ]

          People

          • Assignee:
            Andrus Adamchik
            Reporter:
            Victor Antonovich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development