Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of select queries for each ManyToMany not found ignored element in Criteria and lazy loading #3396

Merged

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented Aug 5, 2023

Use table group join with inner joined entity table for many-to-many not-found="ignore" mapping:

FROM Device device0_
LEFT OUTER JOIN (
	DriveOfDevice drives1_ 
	INNER JOIN Drive drive2_ ON drives1_.DriveId = drive2_.id
	) ON device0_.id = drives1_.DeviceId

@bahusoid bahusoid force-pushed the manyToManyNotFoundInnerJoinLoader branch from bd93b43 to ebaf8aa Compare August 5, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants