-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for hibernate 6.2 #495
Comments
Relates to #493 |
We have the same problem. Is there any update on this? |
I was hoping this would be gone with 4.23.0, but unfortunately it's still there |
Thank you for the feedback! |
The release notes for 4.23.0 say it was included but it still uses hibernate 6.1.* any plans for 4.23.1? |
Running 4.23.0 and having the same issue with the @UuidGenerator annotation: |
I've been debugging this and in my view, it's an issue in Hibernate. I've reported it as HHH-16912. |
@nvoxland @filipelautert Can someone from the Liquibase Hibernate team look at the feedback that the Hibernate team provided on HHH-16912? |
@Bert-R thanks for the ping. I'll fix the cast on Liquibase side for the next release and will link the PR here so we can get it tested. |
PR #508 should fix it - please fell free to test it. |
@filipelautert Thanks for the very quick follow up! You've removed these from the texting matrix, so you apparently accept breaking that compatibility. In that case, I'd suggest to remove the testing matrix, to prevent manual maintenance effort. Dependabot does not update that value, so you always need to change it manually. That is why the incompatibility of 6.2 could go unnoticed. |
Hi - Hibernate 6.2.7.Final has been release and it fixes the problem - we already updated main to use this version. So we will hold the switch to 6.2 API from #508 for a while and imporve it to allow 6.0 and 6.1 compatibility . |
That makes sense. The suggestion on HHH-16912 was slightly different from what you implemented:
That might be a way to implement a new generator that's compatible with all 6.x versions. |
The intermediate solution (upgrade to 6.2.7) works for me. Thanks for that! |
Thanks for the feedback! I'm still thinking on how to use 6.2 apis breaking backwards compatibility - thus I"m holding #508 a bit. |
Hibernate 6.2 changed base class for generators, now it is
org.hibernate.id.Generator
instead oforg.hibernate.id.IdentifierGenerator
. This change generatesClassCastException
in current imnplementation:The text was updated successfully, but these errors were encountered: