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] [Updated] (CAY-2353) Broken paginated column select with only one entity in the result
Date Sun, 10 Sep 2017 11:43:00 GMT

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

Andrus Adamchik updated CAY-2353:
---------------------------------
    Fix Version/s: 4.1.M1
                   4.0.B2

> 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
>             Fix For: 4.0.B2, 4.1.M1
>
>
> 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)

Mime
View raw message