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

Vertical Inheritance: Missing subclass attributes with joint prefetch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2, 5.0-M1
    • 4.2.1, 5.0-M1
    • Core Library
    • None

    Description

      If you use a joint prefetch on a belongs-to relationship whose target is using vertical inheritance, the attributes on the child class are set to null instead of using the results from the database.

      It looks like this is happening when the attribute is read in DescriptorColumnExtractor.visitAttribute, it includes the 'p:' prefetch prefix in the data row key that gets built. Later, the data row result is read from a map without the prefix in the key, and is not found. This only happens on a joint prefetch, disjoint and disjointById work correctly.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m