On Wed, 21 Nov 2007 13:43:44 -0200, Yunhua Sang <[EMAIL PROTECTED]> wrote:

Hi Renat,

Do you have some good ideas to prevent LazyInitializationException be
thrown out after form submitting? My current solution looks not smart:
explicitly call collection.size() in the first thread.

Take a look at http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Session.html#merge(java.lang.Object) and http://www.hibernate.org/hib_docs/v3/reference/en/html/objectstate.html#objectstate-detached.

--
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Consultor de Tecnologia
Eteg Tecnologia da Informação Ltda.
http://www.eteg.com.br

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

Reply via email to