Jan Schatteman (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTM5MmM2NWIz...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16494?atlOrigin=eyJpIjoiYTM5Mm...
) HHH-16494 (
https://hibernate.atlassian.net/browse/HHH-16494?atlOrigin=eyJpIjoiYTM5Mm...
) Right or full joining on single tablepolymorphic entities gives incorrect results (
https://hibernate.atlassian.net/browse/HHH-16494?atlOrigin=eyJpIjoiYTM5Mm...
)
Issue Type: Bug Affects Versions: 6.2.1 Assignee: Unassigned Components: hibernate-core
Created: 19/Apr/2023 08:20 AM Priority: Major Reporter: Jan Schatteman (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
See JoinWithSingleTableInheritanceTest. testRightJoinOnSingleTableInheritance `and
JoinWithSingleTableInheritanceTest.testFullJoinOnSingleTableInheritance for examples of
this.
The problem is that the {{<tablealias>.dtype=xxx}}part gets added to the on clause,
and this leads to incorrect results.
Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) stated that that condition should be pushed down into the tablereference, e.g `ight join
(select * from child_tbl where disc = 'child_a') c on ...`
(
https://hibernate.atlassian.net/browse/HHH-16494#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16494#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100222- sha1:cb3bdf0 )