Jan Schatteman (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMTI5M2EzN2I0...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16494?atlOrigin=eyJpIjoiMTI5M2...
) HHH-16494 (
https://hibernate.atlassian.net/browse/HHH-16494?atlOrigin=eyJpIjoiMTI5M2...
) Right or full joining on single tablepolymorphic entities gives incorrect results (
https://hibernate.atlassian.net/browse/HHH-16494?atlOrigin=eyJpIjoiMTI5M2...
)
Change By: 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.
[~accountid:557058:0222998d-a0c8-4789-91ec-6a92d10dfb9a] 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 ...`
The aforementioned tests have been disabled for now, but should be reenabled when this is
fixed.
(
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 )