Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1989

SelectQuery.pageSize property is not works for child contex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.M1
    • None
    • Core Library, ROP
    • None

    Description

      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)

      Attachments

        Activity

          People

            SavvaKolbachev Savva Kolbachev
            artem-artem Kravchenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: