Originally posted by S Sudhindra:
Is it lazy initialization or lazy instantiation? I think it should be the latter.
Thanks and regards,
if u mentioned lazy=true
and u call from a company bean like
Collection x = company.getAllEmployees();
x will be empty;
naresh voota wrote:Shehroze,
Lazy initialization exception occurs because the hibernate session is closed. If you are getting an exception on Class, you must have a collection specified in the hbm with lazy="true"
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailbosshttps://www.kickstarter.com/projects/paulwheaton/free-heat