[nhusers] Re: Collection loader with more than one parameter

2009-06-30 Thread frag0610
Do I understand that it is impossible? On 30 juin, 01:35, dyahav wrote: > Is it possible to pass more than one parameter to the loader? > > On 29 יוני, 19:25, Fabio Maulo wrote: > > > > > 2009/6/29 frag0610 > > > > The main reason is performance. > > > The parent object has a collection of mor

[nhusers] Re: Collection loader with more than one parameter

2009-06-29 Thread dyahav
Is it possible to pass more than one parameter to the loader? On 29 יוני, 19:25, Fabio Maulo wrote: > 2009/6/29 frag0610 > > > > > The main reason is performance. > > The parent object has a collection of more than 10 000 child objects > > and it is very long to load. > > You shouldn't mapping

[nhusers] Re: Collection loader with more than one parameter

2009-06-29 Thread Fabio Maulo
2009/6/29 frag0610 > > The main reason is performance. > The parent object has a collection of more than 10 000 child objects > and it is very long to load. You shouldn't mapping something if it does not work with lazy=false. After that, do what you want and fight with it. -- Fabio Maulo --

[nhusers] Re: Collection loader with more than one parameter

2009-06-29 Thread frag0610
The main reason is performance. The parent object has a collection of more than 10 000 child objects and it is very long to load. Most of the time, I just need to load a small part of the collection but sometimes, I must load the all collection. On 29 juin, 03:30, dummerchen wrote: > If this is

[nhusers] Re: Collection loader with more than one parameter

2009-06-29 Thread dummerchen
If this is the only reason why you want to use a custom sql for collection loading, try hibernate filter instead: http://nhforge.org/doc/nh/en/index.html#filters They provide a very powerful interface for dynamic collection loading. -- Wolfgang --~--~-~--~~~---~--~--