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


Please explain why do you think this question should be reported?

Report Cancel

Load() strategies results in a special case if the required records isn’t found in the database while get() strategy returns null when records against the id isn’t found in the database.
So, ideally we should use Load() strategy just when we are certain about presence of records against an id.

Please follow and like us:

About the Author