This content has been marked as final.
Show 2 replies
-
1. Re: EntityManager / Lazy Fetch / J2EE / Swing App
knifegun Dec 12, 2006 1:33 AM (in response to knifegun)Anybody?
-
2. Re: EntityManager / Lazy Fetch / J2EE / Swing App
ghilling Dec 12, 2006 3:06 AM (in response to knifegun)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