Hibernate ORM 5.4 introduces support of RootGraphs for IdentifierLoadAccess and MultiIdentifierLoadAccess, user could specify a load graph and a graph semantic using method
When query is executed, we check if GraphSemantic is present. If it is set but no load graph was supplies exception is thrown. (SessionImpl:2851, SessionImpl:3050 ).
Currently this code looks like
But, this seems to be incorrect. We should check if rootGraph is null, but not otherwise. The correct version is:
This makes using RootGraphs with multiload impossible.
, , I merged the PR.
Should a new issue be opened to deal with MultiIdentifierLoadAccessImpl?
@Gail I see a PR was merged a long time ago, so probably we have to close this an open a new one for MultiIdentifierLoadAccessImpl`, what do you think?