Fetching Strategies

What are different fetching strategies in hibernate?

Questions by shipra45

Showing Answers 1 - 6 of 6 Answers

java421

  • Mar 24th, 2010
 

Hibernate defines following fetching strategies:

1. Join Fetching : retrieval of assosiated obects or collections are done by OUTER JOIN in the same SELECT.

2. Select Fetching : A second select is used to retrieve the associated instance or collection.

3. Subselect Fetching : It is almost same as select fetching.

4. Batch Fetching : Hibernate retrieves a batch of entity instance or collections ina single SELECT.

Hibernate also distinguishes between:

1. Immediate fetching.
2. Lazy collection fetching.
3. "Extra-lazy collection fetching.
4. Proxy fetching.
5."No-proxy" fetching.
6. Lazy attribute fetching.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions