-
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
Incorrect serialization of Lazy objects #77
Comments
At this point, a unit test would be needed. |
I don't doubt there is an issue here; but a full reproduction would be useful to do proper fix. Problem is probably bigger than just relaying of |
For information and as the original SO question has been deleted,I have encountered the same issue as reported here: http://stackoverflow.com/questions/42395831/issue-serializing-lazy-manytoone Any workround? If any further information would be useful please advise. |
I don't know if my situation is exactly the same as the other two people reporting here, but I am noticing the same thing. I have made a repository that reproduces the issue in a JUnit test: https://github.com/shakuzen/jackson-hibernate-serialization-repro @cowtowncoder I have done a lot of debugging to understand what is going on here (at least in my case). Spring Data REST's I'm not sure exactly what should be changed in what way, which is why I didn't just open a pull request, but let me know if I can help with anything. |
Any updates on this issue? |
Although this appears to be an old problem, it has far-reaching implications for system optimization. In cases where |
We have the same problem. Any updates or plans? |
More you can find here:
http://stackoverflow.com/questions/33194554/two-different-resulting-jsons-when-serializing-lazy-objects-and-simple-objects
Guys, I've already find out, what's the problem and solved it with hack,
when we try to serialize Hibernate proxy, and isUnwrappingSerializer() is being called, the HibernateProxySerializer is always returning false as per parent class.
But it should return the same answer that the actual serializer of the proxied value object is returning.
And now we have problem that unwrapping instructions are just ignored.
The text was updated successfully, but these errors were encountered: