Monteiro wrote:
As far as I know, you can't... Once the collection is declared lazy or eager, that will be it's behavior. There's a way of fetching lazy (not extra-lazy) collections, that is calling the collections method size(), forcing hibernate to load it any time you want (within a valid session).
Thanks,
but i know this. I'm asking for is there any way to load a collection in a
NON-LAZY manner when it is defined as LAZY in the mapping file. I need this because most of the time my requirement is lazy loading but few times it is not, so i want to take decision at runtime. Is there any way? If not can it be possible to
add this feature to next version?
Supriyo