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.
subject: Hibernate Many to One XML Mapping giving unwanted results