I know to avoid LazyIniializationException we do Hibernate.initialize(Object obj) so tht object that is passed as argument to initialize() method is initialized and can be used outside of the scope of the session .
But what I am not able to understand how this works . I mean if we are doing then we end up in having eager fetching so why we did lazy in the configuration and end up in the eager fetching while runtime.
Am I missing something ??
Happily living in the valley of the dried frogs with a few tiny ads.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop