Spring Roo
  1. Spring Roo
  2. ROO-1898

Pagination support for dynamic finders

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0.RELEASE
    • Fix Version/s: None
    • Component/s: DYNAMIC FINDERS, WEB MVC
    • Labels:
      None

      Description

      It would be nice to have pagination support also for dynamic finders and not only for "findAll", since they might return big result sets as well.

      This would require:

      • count() method in the entity for each generated finder, to determine the total amount of results
      • find...Entries(int firstResult, int maxResults) method for each generated finder OR to call setFirstResult / setMaxResults on the Query in the Spring MVC controller
      • some further changes to the genrated Spring MVC controller methods for the finders

        Activity

        Hide
        Vincent Bonamy added a comment -

        I made a Pull Requet on github for this issue :
        https://github.com/SpringSource/spring-roo/pull/55

        I followed the listing of requirements posted on this issue.

        Tested with petclinic sample (and some others internal spring roo project here), that works well.

        Thank you.

        Show
        Vincent Bonamy added a comment - I made a Pull Requet on github for this issue : https://github.com/SpringSource/spring-roo/pull/55 I followed the listing of requirements posted on this issue. Tested with petclinic sample (and some others internal spring roo project here), that works well. Thank you.

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Ocke
          • Votes:
            11 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated: