W dniu 07.10.2010 20:37, John Berninger pisze: > Grzegorz Krugły wrote: >> In Person class, just add fetch = FetchType.EAGER to @OneToMany >> relation to Role. >> >> > 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. ------------------------------------------------------------------------------ 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