[jboss-user] [JBoss Seam] - Re: Building parent and child in one page

petemuir do-not-reply at jboss.com
Sat Jun 9 13:37:53 EDT 2007


Ooops, sorry, I should have written

anonymous wrote : Try using nested conversations I think, you may also need use multiple entitiy managers, one for the parent conversation and one each nested conversation - be careful when loading entities that you get it from the correct one.

This is probably best, but is perhaps hardest to get right IMO.

You don't want to do this using transaction AFAICS, I really meant you would do a reload of the entity from the PC in code, but I this is really fighting against the way hibernate works and would be a mess!

Detached entities would allow you to manually merge only the entities you wanted to save (along with the correct cascades) - but you loose all the benefits of the entity being managed.  Perhaps this is most practical solution.

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

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



More information about the jboss-user mailing list