Hannes Rosenögger (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5ec3d02...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYjM0ZmIwMTBk...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15605?atlOrigin=eyJpIjoiYjM0Zm...
) HHH-15605 (
https://hibernate.atlassian.net/browse/HHH-15605?atlOrigin=eyJpIjoiYjM0Zm...
) Date comparisons with attributeconverters for Zoneddatetime broken since Hibernate 6.1.2
(
https://hibernate.atlassian.net/browse/HHH-15605?atlOrigin=eyJpIjoiYjM0Zm...
)
Change By: 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 and even 6.1.1, but in hibernate 6.1.2 and
newer it suddenly breaks when comparing dates.
Normal crud operations work as intended.
The error message with hibernate > 6.1.1 is:
{noformat}java.lang.IllegalArgumentException: Unsure how to handle given Java type
[java.lang.String] as TemporalType#TIMESTAMP{noformat}
I’ve created a small sample project to showcase the behavior:
[
https://github.com/123Haynes/hibernate-test-case-HHH-15605|https://github...]
Simply change the Hibernate Version to 6.1.1 and the test will pass. Anything newer, and
it will fail.
I tested this with a h2 and a hsql database, same error so I don’t think it’s database
specific.
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 )