This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Everything is fine till now:
But when i try to fetch it in my java class with following statement:
empList = session.createQuery("select e from Employee as e ").list();
i am gettting designationDescription having null values and some unwanted handler object ..see attachment for debugging mode snapshot .
This object is of Type Designation and it should contain INDEX_NO,Description in it but they are null as of now and some unwanted object is visible in debugging mode.
Navdeep Singh kanwal
Joined: Dec 19, 2011
This is called Lazy Loading from Hibernate. Just try to fetch the child and you will that.