The presence of an EntityGraph circumvents the QueryPlan caching. EntityGraph affects the generated SQL. If the entire premise of this bug is the belief that the cached QueryPlan ought to be used here, that:
- is not the case
- has never been the case
- is not documented to be the case
Ergo, this is not a bug. We could certainly convert this to a RFE. The problem is that the EntityGraph "API" does not lend itself well to asking the root level whether it contains an hints at join fetching. So I'm not sure this is something we'd even want to do. |