I have three entity classes A, B, C. A has a many-to-many relationship with B, and a one-to-many relationship with C.
select a from A join fetch a.b
Produces one query as expected
select a from A join fetch a.c
Produces n+1 queries.
What am I missing?