cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kravchenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-1989) SelectQuery.pageSize property is not works for child contex
Date Thu, 26 Feb 2015 14:21:12 GMT
Kravchenko created CAY-1989:
-------------------------------

             Summary: 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


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