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

EJBQL queries are broken for vertical inheritance entities

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 3.1
    • Undefined future
    • Core Library
    • 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. vertical_inheritance_ejbql_test_2.patch
          24 kB
          Victor Antonovich
        3. vertical_inheritance_ejbql_fix.patch
          5 kB
          Victor Antonovich
        4. vertical_inheritance_ejbql_fix_2.patch
          7 kB
          Victor Antonovich
        5. org.apache.cayenne.access.VerticalInheritanceTest.txt
          5 kB
          Victor Antonovich

        Activity

          People

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

            Dates

              Created:
              Updated: