0 Replies Latest reply on Mar 1, 2010 4:44 AM by unlex

    "findAssociatedGroups" question

      Hi!

      I've noticed that method findAssociatedGroups(Group group, String groupType, boolean parent, boolean cascade, IdentitySearchCriteria criteria)

       

      populates the whole set of groups, then filters by group type and returns groups with the provided type. But in fact method IdentitySearchCriteria page(int firstResult, int maxResults) invokes BEFORE groups are filtered by groupType. This causes pagination problems.

       

      So the questions are - how to make pagination work correct and why not to build hql queries providing groupType and not to return the whole set of results?

       

      Thanks.