Inspecting the source code it seems that FetchGraphLoadPlanBuildingStrategy.resolveImplicitFetchStrategyFromEntityGraph would lazy load any relation not included in the graph; this is also explicitly commented by developer Strong Liu: under fetchgraph mode, according to the SPEC, all other attributes that no in entity graph are supposed to be lazily loaded. BUT—I tried to output some log inside that method and it never gets invoked, as if setting the query hint won't trigger FetchGraphLoadPlanBuildingStrategy. Is it a bug? |