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

Vertical Inheritance: Fix Disjoint By Id Prefetch On Sub-Entity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.2
    • 5.0-M2
    • None
    • None

    Description

      I ran into an issue with prefetching a belongs-to relationship whose target was the sub-entity of a vertical inheritance scenario. When disjointById is used, the select for the sub-entity looks for an ID of null instead of the actual ID assigned to the relationship.

      For example, lets say I have a base entity Base, a vertically inherited sub-entity Impl, and a separate entity called Other.

      If Other has a belongs-to relationship to Impl called Other.impl, attempting to use a disjointById prefetch on that relationship will always find no results.

      Attachments

        1. disjoint-by-id-issue.patch
          18 kB
          Jadon Hansell

        Activity

          People

            ntimofeev Nikita Timofeev
            jhansell Jadon Hansell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: