-
Notifications
You must be signed in to change notification settings - Fork 109
2.8.6 NoSuchMethodException with Hibernate 5.2 #102
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
Comments
@coladict Thank you for reporting this, suggesting a fix. One question: which specific version of Hibernate 5.2.x have this problem? |
We are using Hibernate 5.2.2.Final on the project this happened with. |
In case you're still unable to reproduce it, I should note how our ObjectMapper is initialized. SessionFactoryImplementor emf = (SessionFactoryImplementor) EMUtil.getFactory();
mapper.registerModule(new Hibernate5Module(emf, emf)
.disable(Hibernate5Module.Feature.USE_TRANSIENT_ANNOTATION)
.enable(Hibernate5Module.Feature.FORCE_LAZY_LOADING)); |
Using Hibernate
|
I am facing the same issue with 5.2.7.Final. Can we get a patch in the 2.8.7 version? |
Quick question: has anyone been able to verify that patch works for 5.0, 5.1 and 5.2 hibernate versions? |
I don't have good way to verify how well this works, but it does pass 5.2 test with H5.2.6. |
Missing method:
Here's a patch to fix it that is guaranteed to be future-compatible because it asks through JPA, not the Hibernate-only APIs.
You can actually remove everything else from the
SessionReader
static class.Here's the Javadoc comment from the JPA specifications.
The text was updated successfully, but these errors were encountered: