What is the difference between inner join and inner join fetch ? ,HQL

hibernate, hql

Solution

what Koitoer has mentioned is correct

Additionally In your Account person is normally set to load lazily, even if you join it in the HQL, the collection person may not load, you have to use 'fetch' to load them.

Problem

I have this doubt in `HQL` queries ``` "SELECT c from Account c inner join c.person " "SELECT c from Account c inner join fetch c.person" ``` Are equals?...When I can use `fetch` ? Thanks in advance.

Original source

Related problems