cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Savva Kolbachev (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAY-1989) SelectQuery.pageSize property is not works for child contex
Date Thu, 12 Mar 2015 13:01:38 GMT

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

Savva Kolbachev reassigned CAY-1989:
------------------------------------

    Assignee: Savva Kolbachev

> SelectQuery.pageSize property is not works for child contex
> -----------------------------------------------------------
>
>                 Key: CAY-1989
>                 URL: https://issues.apache.org/jira/browse/CAY-1989
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library, ROP
>    Affects Versions: 3.2.M1
>            Reporter: Kravchenko
>            Assignee: Savva Kolbachev
>
> Relate to child context only:
> I just try to perform query like:
> ......
> SelectQuery<Entity> query = SelectQuery.query(Entity.class);
> query.addOrdering(Entity.SOME_PROPERTY.desc());
> query.setPageSize(1);
> List<Entity> records = childContext.select(query);
> .......
> I know that I have more than one record of 'Entity' type in my db.
> Therefore "IllegalArgumentException: Returned page size (2) exceeds requested page size
(1)" occurs.
> i'm trying to do it on client side and I think that this one relate exactly to ROP, because
exception occurs in
> RemoteIncrementalFaultList.java (131)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message