On 5/10/08, Toby Hobson <[EMAIL PROTECTED]> wrote:
>  But now I'm getting LazyInitialization exceptions from hibernate because the
> results have been detached from the session. I guess I'm going to have to re-
> attach the object to the session inside my getResults() method but this seems
> like a bit of a hack.

Instead of persisting the search results, persist the search criteria
entered by the user and just perform the search in the render request
(i.e, in your getResults() method). No LazyInitializationExceptions,
less session memory used, everybody happy. :)

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to