Difference between load() and get() methods in Hibernate
Dont use load() when you are not sure about the object exists/record exists in database.
When you call load() method if the object is not exist/unique id is not found in DB, then it will throw an exception.
When you call get() method if the object is not exist then it will return NULL reference.
Dont use load() when you are not sure about the object exists/record exists in database.
When you call load() method if the object is not exist/unique id is not found in DB, then it will throw an exception.
When you call get() method if the object is not exist then it will return NULL reference.