Arne Theß (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjkzNTc1YjI2...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15495?atlOrigin=eyJpIjoiNjkzNT...
) HHH-15495 (
https://hibernate.atlassian.net/browse/HHH-15495?atlOrigin=eyJpIjoiNjkzNT...
) BINARY (and by extension UUID) is no longer comparable in Hibernate 6 (
https://hibernate.atlassian.net/browse/HHH-15495?atlOrigin=eyJpIjoiNjkzNT...
)
Issue Type: Bug Affects Versions: 6.1.2 Assignee: Unassigned Components: hibernate-core
Created: 09/Sep/2022 06:42 AM Priority: Major Reporter: Arne Theß (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
)
According to ArgumentTypesValidator.checkType() the types BINARY and UUID are not
comparable.
This means that trying to use the aggregator MAX or MIN on a UUID column while grouping
(SELECT MAX(id) FROM x GROUP BY id) results in the error message “Parameter 1 of function
max() has type COMPARABLE, but argument is of type java.util.UUID”.
This is a problem, especially since mysql natively supports UUIDs since version 8.
(
https://hibernate.atlassian.net/browse/HHH-15495#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15495#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#100206- sha1:d8a7a40 )