What different fetching strategies are of hibernate?



What different fetching strategies are of hibernate?..

Answer / Yash Vardhan Srivavastava

Hibernate provides the following fetching strategies:n
1. Join Fetch: It loads related objects as a part of the main query.
2. Lazy Initialization: It loads objects only when they are accessed (default behavior).
3. Eager Initialization: It loads all related objects along with the main object in a single query.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

How can we get hibernate statistics?

1 Answers  


What does fetchtype lazy mean?

1 Answers  


What is difference between lazy loading and eager loading in hibernate?

1 Answers  


What does hibernate show_sql true means?

1 Answers  


What are the types of inheritance models in hibernate?

1 Answers  


What is dialect in hibernate?

1 Answers  


What is the purpose of an orm?

1 Answers  


What is <unk>onetomany mappedby?

1 Answers  


Is session is thread safe in hibernate?

1 Answers  


What is the hibernate life cycle of an entity?

1 Answers  


What is mapping in coding?

1 Answers  


What are the 5 steps of orm?

1 Answers  


Categories