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

(Single table) Inheritance and Paginated lists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0M5
    • 3.0M6
    • Core Library
    • None

    Description

      Looks like using paginated queries results in exceptions and generally incorrect behavior when fetching on a superclass in case of single table inheritance. (This is not specific to single-table, rather this is the case we can easily test). The problem is PersistentListHelper inner class of IncrementalFaultList:

      boolean incorrectObjectType(Object object) {
      ...

      if (!persistent.getObjectId().getEntityName().equals(rootEntity.getName()))

      { return true; }

      return false;
      }

      Comparing entity names is not appropriate as an object can be a subclass with a different entity name.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: