What is difference between eager and lazy loading?



What is difference between eager and lazy loading?..

Answer / Rukmani Gunjiyal

Eager Loading loads associated entities immediately when a parent entity is loaded, while Lazy Loading delays the loading of associated entities until they are explicitly fetched.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

Why do we need mapping?

1 Answers  


What is an orm tool?

1 Answers  


What is the use of show_sql in hibernate?

1 Answers  


What is transaction management in hibernate? How it works?

1 Answers  


Does hibernate use reflection?

1 Answers  


What is transient annotation in hibernate?

1 Answers  


What is dialect in hibernate?

1 Answers  


What’s the usage of configuration interface in hibernate?

1 Answers  


Does hibernate use jdbc internally?

1 Answers  


Is hibernate part of spring?

1 Answers  


Why do we use jpa instead of hibernate?

1 Answers  


How to integrate Hibernate and Spring frameworks?

1 Answers  


Categories