Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ObjectNotFoundException No row with the given identifier exists

 
Sag shi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sag shi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

is someone agree with this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic