1. EmpInformation file contains the <composite-id> tag and many-to-one with Department Class
Department class having composite-id with some more mapping - many-to-one and properties.
My Questions is whenever I am trying to call the ReportID on getDepartment it's giving error as org.hibernate.ObjectNotFoundException: No row with the given identifier exists: It seems I am not getting the Department info.
This is the stmt we are using to access the Dept information :
I want to point some more info here
1. Lazy is true by default so whenever I access the child table entity it should get that info but it won't.
2. It's mandatory update="false" insert="false" if I remove then it's asking me to put that.
Joined: Mar 28, 2012
Here is something more which I got on google...
When there is a foreign key but the referenced row does not existed, or has been deleted, hibernate would throw an exception like this: