What are the fetching strategies in hibernate?



What are the fetching strategies in hibernate?..

Answer / Prakash Kumar Jha

In Hibernate, fetching strategies determine how to load related entities. There are four main fetching strategies: EAGER (entities are loaded immediately), LAZY (entities are loaded when accessed), JOIN (SQL joins are used to load related entities), and select (only the primary key columns of related entities are loaded).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What is the limitation of hibernate?

1 Answers  


What is lazy code?

1 Answers  


Hibernate SessionFactory is thread safe?

1 Answers  


What are the disadvantages of hibernate?

1 Answers  


What is session object in hibernate?

1 Answers  


What is unidirectional and bidirectional in hibernate?

1 Answers  


What is a native query?

1 Answers  


How to enable logging (log4j) in hibernate?

1 Answers  


What is @manytoone fetch fetchtype lazy?

1 Answers  


What is difference between hibernate session get() and load() method?

1 Answers  


What the four ORM levels are in hibernate?

1 Answers  


What is mapping in hibernate?

1 Answers  


Categories