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

EJBQL queries are broken for vertical inheritance entities

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: 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.

        Attachments

        1. vertical_inheritance_ejbql_test.patch
          23 kB
          Victor Antonovich
        2. org.apache.cayenne.access.VerticalInheritanceTest.txt
          5 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_fix_2.patch
          7 kB
          Victor Antonovich

          Activity

            People

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

              Dates

              • Created:
                Updated: