| Thank you, did not notice the pull. I have executed the test.
HHH-10745 - Relations are not loaded when using Fetch Profiles Open is very similar, except the (not really a)cycle is detected directly by MetamodelGraphWalker.visitedAssociationKeys, while the in
HHH-10842 - Entity graph attribute node is ignored if the entity is mapped by the primery key column Open it is detected by AbstractLoadPlanBuildingAssociationVisitationStrategy. I have tried to remove the cycle detection from MetamodelGraphWalker.visitedAssociationKeys and then the cycle was detected by AbstractLoadPlanBuildingAssociationVisitationStrategy, so we are looking at the same issue. I have noticed that marking the relations EAGER instead of LAZY loads the joins fine while using the same MetamodelGraphWalker and AbstractLoadPlanBuildingAssociationVisitationStrategy. It does it as a subsequent SELECT. Of course we can't make the relations EAGER. I believe fixing
HHH-10745 - Relations are not loaded when using Fetch Profiles Open will fix
HHH-10842 - Entity graph attribute node is ignored if the entity is mapped by the primery key column Open too. The question is how - better cycle detection? Or subsequent SELECT just like the EAGER does? I was hoping to get the answer on the forum, but no luck. |