Re: [appfuse-user] Prevent Hibernate from loading everything!

2007-11-28 Thread Michael Horwitz
By default Hibernate lazy loads all collection associations. The most likely problem here is that XStream is navigating the object graph, and as soon as XStream does a account.getPosts() the entire list of posts is loaded. The best approach is probably to get XStream to ignore the relevant attribut

[appfuse-user] Prevent Hibernate from loading everything!

2007-11-28 Thread sarat.pediredla
I am using Hibernate with Struts2 and XStream to dump my objects to XML. What is worrying is that because of the weird mapping between POJO and Hibernate, when I have a top level object or table, ex. Account which then has a list of Posts which in turn has a list of Comments, when I do accountDao