• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load() method does not throw "org.hibernate.ObjectNotFoundException” !!!

 
Abhi Sal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I learned that when the given id could not be found load() method throws an exception “org.hibernate.ObjectNotFoundException”
When I debugged the following code.



It did not throw exception at LINE1. It throws exception while executing LINE2
Why so ? The hibernate ref document mentions that load() method throws exception !!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic