Ivan Sukianto wrote on Jan 14, 2010 18:38:
You can try to use a join fetch mechanism when you do the query.
Your solution is better but is not much different. The best solution should fetch only the elements appearing the the page, and not the whole list at creation time.
Seam has some very nice Components of which the Query objects contain the stuff that you want. It paginates and by using join fetching in your query you get the roles you want.