Please send your Questions & Answers or Feedback to ""

What's the difference between load() and get() method in hibernate?

Load() methods results in an exception if the required records isn’t found in the database while get() method returns null when records against the id isn’t found in the database.

So, ideally we should use Load() method only when we are sure about existence of records against an id.

Related Posts Plugin for WordPress, Blogger...
Flag Counter