What is the difference between get and load method?



What is the difference between get and load method?..

Answer / Rajesh Kumar Maurya

The main difference between get and load methods in Hibernate lies in their behavior towards the initial fetching of an entity. The get method fetches the data immediately, while the load method loads only the proxy object without actually querying the database.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is hibernate and how it works?

1 Answers  


What is callback interface?

1 Answers  


What are different types of second level cache?

1 Answers  


Difference between load and get?

1 Answers  


What is java hibernate?

1 Answers  


Difference between save() and saveorupdate() method of hibernate?

1 Answers  


What are the different types of extension interface that is present in hibernate?

1 Answers  


What will happen if we don’t have no-args constructor in entity bean?

1 Answers  


What is jpa and hibernate?

1 Answers  


Why do we use jpa instead of hibernate?

1 Answers  


Which are the elements of hibernate architecture?

1 Answers  


What is ogm in hibernate?

1 Answers  


Categories