With the following model:
Assuming a max_fetch_depth of 1, calling EntityB.getEntityA1() will execute the following query:
That’s 6 joins, but I would have expected at most three joins, one for the lazy association and two for the eager associations in EntityA. |