| This seems to have been alluded to in this comment on HHH-10263:
We discussed as a team and came to the agreement that long term the best option here is to add entity-graph support to MultiIdLoadAccess.
I'm finding MultiIdentifierLoadAccess very useful - it would be great if at the same time as loading a bunch of `Leaf` objects by their IDs, we could initialise their `Branch` and `Tree` associations as well. I imagine usage something like this:
return session.byMultipleIds(Leaf.class)
.leftJoinFetch("branch as b")
.leftJoinFetch("b.tree")
.multiLoad(leafIds);
I suppose that if you joined a many-to-one association you'd have to manage the de-duplication before returning the results. |