Hannes Rosenögger (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ec3d02...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOTc2NTRiMjE2...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15605?atlOrigin=eyJpIjoiOTc2NT...
) HHH-15605 (
https://hibernate.atlassian.net/browse/HHH-15605?atlOrigin=eyJpIjoiOTc2NT...
) Date comparisons with attributeconverters for Zoneddatetime broken in Hibernate 6 (
https://hibernate.atlassian.net/browse/HHH-15605?atlOrigin=eyJpIjoiOTc2NT...
)
Issue Type: Bug Affects Versions: 6.1.4 Assignee: Unassigned Components: query-hql
Created: 17/Oct/2022 02:03 AM Environment: Spring boot 2.7.4 with hibernate 5.6.11 running
on jdk17 works fine
Spring boot 3.0.0-SNAPSHOT with hibernate 6.1.4 running in jdk17 doesn't work
Priority: Major Reporter: Hannes Rosenögger (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ec3d02...
)
In one of my applications, we use an attribute converter to store zoneddatetime objects as
human-readable strings in the database.
This works just fine with hibernate 5.6.11, but in hibernate 6.1.4 it suddenly breaks when
comparing dates.
Normal crud operations work as intended.
The error message with hibernate 6 is:
java.lang.IllegalArgumentException: Unsure how to handle given Java type
[java.lang.String] as TemporalType#TIMESTAMP
I’ve created a small sample project to showcase the behavior:
https://github.com/123Haynes/data-jpa-demo/blob/main/src/test/java/com/ex...
(
https://github.com/123Haynes/data-jpa-demo/blob/main/src/test/java/com/ex...
) (main branch with spring boot 2.7.4 and hibernate 5.6.11, testcase works as intended)
https://github.com/123Haynes/data-jpa-demo/blob/spring-boot-3/src/test/ja...
(
https://github.com/123Haynes/data-jpa-demo/blob/spring-boot-3/src/test/ja...
) (branch spring-boot-3 with hibernate 6.1.4, testcase fails with the error mentioned)
I’m not sure if I missed something that I need to change in the release notes, or if this
usecase is really broken.
Any help with this would be greatly appreciated. 🙂
(
https://hibernate.atlassian.net/browse/HHH-15605#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15605#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#100209- sha1:13f5f09 )