You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2017/08/22 08:52:00 UTC

[jira] [Closed] (CAY-2353) Broken paginated column select with only one entity in the result

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

Nikita Timofeev closed CAY-2353.
--------------------------------
    Resolution: Fixed

https://github.com/apache/cayenne/commit/863c23e66b84a616188adb8c7d18d5e3e2436636

> Broken paginated column select with only one entity in the result
> -----------------------------------------------------------------
>
>                 Key: CAY-2353
>                 URL: https://issues.apache.org/jira/browse/CAY-2353
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.0.B1, 4.1.M1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>
> Exception is thrown when trying to select full entity wrapped in Object[] with paginated query.
> Instead of plain ID Object[] is used in page resolution query.
> Example:
> {code}
> Property<Artist> artistFull = Property.createSelf(Artist.class);
> List<Object[]> a = ObjectSelect.query(Artist.class)
>                 .columns(artistFull)
>                 .pageSize(10)
>                 .select(context);
> {code}
> Note that {{List<Artist> a = ObjectSelect.query(Artist.class).column(artistFull)...}} works.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)