Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16864 (
https://hibernate.atlassian.net/browse/HHH-16864?atlOrigin=eyJpIjoiMzE2Ym...
)
Re: JPA Criteria queries do not conform to JPA spec when distinct=false (
https://hibernate.atlassian.net/browse/HHH-16864?atlOrigin=eyJpIjoiMzE2Ym...
)
Just for reference, this is related to
https://github.com/hibernate/hibernate-orm/blob/6.0/migration-guide.adoc#... and how
we determine the uniqueSemantic in the constructor of ConcreteSqmSelectQueryPlan. We
currently default to ListResultsConsumer.UniqueSemantic.ALLOW when the query does not
produce “unique” results, which means that when selecting an entity, we will de-duplicate
automatically.
It’s questionable though if such queries make sense in the first place. Why would you want
to see duplicate entries if you do a join on something that alters the cardinality?
(
https://hibernate.atlassian.net/browse/HHH-16864#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16864#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#100227- sha1:534ec1c )