This content has been marked as final.
Show 3 replies
-
1. Re: Paginator and LazyInitializationException
ivan.indrawan Jan 14, 2010 6:38 PM (in response to agori)You can try to use a join fetch mechanism when you do the query.
http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html/queryhql.html
-
2. Re: Paginator and LazyInitializationException
agori Jan 14, 2010 7:13 PM (in response to agori)
Ivan Sukianto wrote on Jan 14, 2010 18:38:
You can try to use a join fetch mechanism when you do the query.
http://docs.jboss.org/hibernate/stable/entitymanager/reference/en/html/queryhql.htmlYour 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.
-
3. Re: Paginator and LazyInitializationException
lvdberg Jan 15, 2010 9:28 AM (in response to agori)Hi,
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.
Leo