Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Great!!! Seriously cleared my concept. Great Explanation with practical proofs
- Vimal Kumar
That’s a great example. Clears the concept well. However, even in case of load, we cannot retrieve the Id. I understand that to fetch any of the attributes including Id, a check is made in the database and the data retrieved. So, if the required record is not available, it will throw Object not found exception. Please correct me if the understanding is wrong.
- Toral
I used the same example and i am seeing there is no difference between the load and get apart from that load() returns ObjectNotFoundException() and get() returns null pointer exception.
- Suresh Kumar Pandey
Good Explanation. Such an good example cleared the doubts.
- Sumit Chauhan
Very well explained. Have a look at https://www.aurorasolutions.io/get-and-load-methods-in-hibernate-2/ . It’s also one of the good ones.
- RW
Well, quite bad explained, read more about get and load. I will ask you: why not use ONLY .get() since it will retrieve the object or return null and forget about .load()?
- Dorel
Hi Pankaj, Thank you so much for explaining it so perfectly.It helped me a lot.
- Annu Upadhuaya