cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] Created: (CAY-1142) (Single table) Inheritance and Paginated lists
Date Tue, 02 Dec 2008 13:54:11 GMT
(Single table)  Inheritance and Paginated lists 

                 Key: CAY-1142
             Project: Cayenne
          Issue Type: Bug
          Components: Cayenne Core Library
    Affects Versions: 3.0M5
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik
             Fix For: 3.0M6

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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message