Grzegorz Krugły wrote: > W dniu 07.10.2010 20:37, John Berninger pisze: > >> If I do that, how do I resolve the same LazyInitializationException >> error if/when it appears against the measurements List<DataPoint> object >> inside the Person class? I can't make them both an eager fetch. >> > > Why not? > > If You're just concerned about sucking whole model into RAM, You'll have > to init lazy relations Yourself in Your business logic code. Don't know > if it's a proper way, but entity.collection.size(), eg. > > person.roles.size(); > > will fetch the list. > I'm not concerned about sucking the entire model into RAM - when I try to make more than one object an eager fetch, I get an exception telling me Stripes can't fetch multiple bags at once. I'm already init'ing lazy collections in the DAO logic (I'm walking the entire collection, which is probably an even worse way of doing it, but I'm not concerned about speed / optimization at this point).
-- John ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users