Hibernate uses fetching strategy for retrieving associated objects when an application needs to navigate the association. Fetch strategies are declared in the object relational mapping metadata, or over-ridden by a particular HQL or Criteria query.
Hibernate defines following fetching strategies:
- Join fetching is used to retrieve the associated instance or collection in the same SELECT, using an OUTER JOIN.
- Select fetching is used