Jones (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16537 (
https://hibernate.atlassian.net/browse/HHH-16537?atlOrigin=eyJpIjoiMWVhYT...
)
Re: Wrong SQL generated when root join is not used in sub-query (
https://hibernate.atlassian.net/browse/HHH-16537?atlOrigin=eyJpIjoiMWVhYT...
)
In hibernate 5 the SQL is fine:
Hibernate:
select
entitya0_.ID as id1_0_,
entitya0_.ENTITY_B as entity_b2_0_
from
ENTITY_A entitya0_
inner join
ENTITY_B entityb1_
on entitya0_.ENTITY_B=entityb1_.ID
where
0<(
select
count (*)
from
REFERENCED_ENTITY referenced2_
where
referenced2_.foo=1
and referenced2_.ID=entityb1_.REF_NUMBER
)
(
https://hibernate.atlassian.net/browse/HHH-16537#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16537#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#100225- sha1:f83bc8f )