Beginner |
|
Joined: Tue Oct 28, 2003 6:43 am Posts: 33
|
I write this
Iterator i = session.iterate("from JPPricelist");
XRecordSet headpricelists = RecordBeanMapper.iterateBeanToXRecordSet(i);
ctx.setAttribute("pricelists", headpricelists);
And i have in JPPricelist a property that is a collection. I map this collection as lazy=true but when I extract the object from the iterator (and only when i extract object from iterator) hibernate initialize the collection also if i don't use it!
How can i resolve the problem of initialize collection only when I call method getRows();
|
|