This is a common issue for web service developers who would like to return entity classes directly. Even if all the data I need is loaded there are still many uninitialized proxies and collections that I don't need. I would like for them to just return null and not throw a Lazy Load Exception. Basically I just want the POJO contract, however proxies and hibernate collections have to be purged to get that (unless there is some new way in hibernate that I don't know about). Can I use MapStruct to do this?
More details about this if needed:
http://www.mojavelinux.com/blog/archives/2006/06/hibernate_get_out_of_my_pojo/
http://www.gwtproject.org/articles/using_gwt_with_hibernate.html
Gilead was the only thing that I found that worked well for this but it is no longer around.