-
Notifications
You must be signed in to change notification settings - Fork 106
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
Add support for Hibernate 5.2 #92
Comments
I fix it in pull #66 |
Could you please elaborate what you mean by "have to upgrade"? I am fine fixing issues that would exist when used with 5.2, but ideally version we mandate should be an early 5.x minor version for maximal compatibility -- users are unlikely to base their choice of Hibernate version based on what jackson module would like. So we should not require specific later 5.x minor version if at all possible to avoid (yes, currently 5.1 is required which seems unfortunate). |
Hello for me https://jira.spring.io/browse/DATAJPA-630 https://jira.spring.io/browse/DATAREST-359 This error was appearing before with hibernate 5.1 and then I followed the recommendation on stackoverflow to add |
@ptahchiev At this point module can not work with HIbernate 5.2 since module is using part of non-public API that was included in 5.0 and 5.1 but removed from 5.2. There was an attempt (#66) to resolve this, but that unfortunately would not work with 5.0 and 5.1, so we are still missing a solution that would work for these existing hibernate 5.x versions. I am not sure the exception you get is the primary cause; rather it seems likely that it would be a secondary exception triggered by actual failure during class loading. |
Hi, you're saying it doesn't work with Hibernate 5.2, but my project is using Hibernate 5.2.2.Final and Jackson version 2.7.5 with the same version for this module and a lazy object that gets serialized properly. Could this be a regression bug for the ones experiencing it? I don't know if it would also get deserialized properly if I didn't have a custom deserializer, which fetches it the existing object from the database, because it is only being sent to the server as an id. |
I'm experiencing the exact same issue as @ptahchiev (down to the exception, + usage of spring-data-rest). Are there any updates regarding this? I'm still not sure where the bug actual lies, with SDR or jackson-datatype-hibernate |
Added a PR #100 |
Due huge changes in Hibernate 5.2 it is necessary to upgrade version to 5.2
The text was updated successfully, but these errors were encountered: