Tomáš Müller (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5b50823...
) *commented* on HHH-16513 (
https://hibernate.atlassian.net/browse/HHH-16513?atlOrigin=eyJpIjoiMjU0ZG...
)
Re: Wrong query generated for a parent-child relation within the same table (
https://hibernate.atlassian.net/browse/HHH-16513?atlOrigin=eyJpIjoiMjU0ZG...
)
Attaching the same test in Hibernate 5.6.15 where the same HQL generates the following
SQL, which is correct (returning both ids):
select
scheduling0_.id as col_0_0_,
scheduling1_.id as col_1_0_
from
subpart scheduling0_
inner join
subpart scheduling1_
on scheduling0_.parent=scheduling1_.id
SchedulingSubpart (c5923ae2-1380-4fb9-8a78-a2d7e9aa5314).java (
https://hibernate.atlassian.net/secure/attachment/50324/50324_SchedulingS...
)
ORMStandaloneTestCase (b4b995f1-5049-4142-98bd-7859da696d92).java (
https://hibernate.atlassian.net/secure/attachment/50325/50325_ORMStandalo...
)
(
https://hibernate.atlassian.net/browse/HHH-16513#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16513#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#100223- sha1:cdc0af3 )