cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAY-1142) (Single table) Inheritance and Paginated lists
Date Tue, 02 Dec 2008 16:32:11 GMT

     [ https://issues.apache.org/cayenne/browse/CAY-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik closed CAY-1142.
--------------------------------

    Resolution: Fixed

> (Single table)  Inheritance and Paginated lists 
> ------------------------------------------------
>
>                 Key: CAY-1142
>                 URL: https://issues.apache.org/cayenne/browse/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.


Mime
View raw message