BY Default Hibernate is Lazy (using select).
There are 4 fetching strategies:
Can you guess if we are fetching the parent and we need to fetch, what could be the ways we can fetch.
- In Single query using join (FETCH- JOIN)
- Multiple select queries (FETCH-SELECT)
- By making some group of collections (FETCH-SUBSELECT)
- Fetching records in batch. (FETCH-BATCH)