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:
I’ve created a small sample project to showcase the behavior: https://github.com/123Haynes/data-jpa-demo/blob/main/src/test/java/com/example/datajpademo/DataJpaDemoApplicationTests.java(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/java/com/example/datajpademo/DataJpaDemoApplicationTests.java (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. 🙂 |