[jboss-user] [EJB 3.0] - Re: EntityManager / Lazy Fetch / J2EE / Swing App

ghilling do-not-reply at jboss.com
Tue Dec 12 03:06:52 EST 2006


You should checkout the FAQs on the hibernate website for this topic.

Generally you should explicitly transfer the data you need to your client in one call via data transfer objects. You may use your EntityBean classes for this. Just make sure all your dependent objects are initialized (walk the tree if in doubt).

Reattaching is a bad idea because you have won't have acid semantics for your objects any more and you do want them (?).

Regards,

-Gunnar


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

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



More information about the jboss-user mailing list