-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Cannot serialize object from mybatis and it has a field lazy-loaded #4681
Comments
Not sure what you want us to do, here |
We do not generally accept issues where many libs are used. Reproducible cases should generally use only Jackson libs. |
Yes, "exotic" types by 3rd party libraries/frameworks tend to require special supported, provided often as Jackson datatype modules: for Hibernate, there is https://github.com/FasterXML/jackson-datatype-hibernate/ . Such libraries would ideally be created and maintained by library/framework maintainers. But we sometimes accept contributions if users want to write implementations. In this case it is very likely that such contribution (PR) would be needed. Or possibly someone sharing way they have used Jackson configuration and/or custom (de)serializers. |
Nothing we can do in
|
Search before asking
Describe the bug
Jackson 2.13.5
Spring Boot 2.17.x
Mybatis 3.5.x
JDK 17
Here is my Mybatis map.xml
jackson cannot serialize the result of selectByPrimaryKey because of fetchType="lazy", error message like this:
and if set fetchType=“eager" or remove fetchType="lazy", Jackson works fine.
Version Information
Jackson verison: 2.13.5
Reproduction
The text was updated successfully, but these errors were encountered: