[jboss-user] [EJB 3.0] - Re: EJB3 transaction / lazy loading issue

zilbi do-not-reply at jboss.com
Wed Aug 27 08:34:16 EDT 2008


solved it!

it turns out that  sorting the collection returned from one of the entity's getters (using collections.sort) make hibernate  think i changed the entity.

i cloned the collection before sorting and it is solved - no more update query when the transaction exits.

cool!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172805#4172805

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172805



More information about the jboss-user mailing list