For the lazy loading, we are using cglib. I'm not sure that it is possible because I don't know how to get the size of something that is not there :-). An alternative is to add a "getCount" method. This operation should help in many cases and the cost should not be expensive.
br Christophe On Fri, Oct 17, 2008 at 09:43, Boni Gopalan (BioImagene) < [EMAIL PROTECTED]> wrote: > I have a requirement to know the size of a collection (List, Map) while > fetching an object. The <collection-descriptor> of these fields have > 'proxy=true'. > > How is it possible to find out the size it without iterating through > the objects? > > > > > > Boni Gopalan > Manager Engineering > BioImagene, Pune > > +91-206-609-6579(O) > +91-992-369-9356(C) > > > >
