Hi ,
there are two pojos Employee,Adresses.
and corrensponding table.
Adress table is referring to the Employee table
by default lazy="false" hibernate provides ,means if we are getting the employee table data automaticaly address table data also will come.
in case of lazy="true" if we try to retrieve only employee table data will come because it will not fetch the child table(Address) data.
but in my lazy=false it is working fine,
if i place lazy="true" it is working as lazy="false".it should not work like that .
Can any body pls let me know how to use lazy="true" in hbm.xml inorder not to fetch the child table data.
Thanks In Advance................
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html