-
Notifications
You must be signed in to change notification settings - Fork 616
Clear exception message on recursive mapping of immutable objects. #2340
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
You are using the Lombok library with |
Is it possible, that you inject the not jet fully populated object into the "child"-constructor, so you won't run into the cycle? |
No, we tried this more than once, but it is not possible to do this in any way. |
I found this on StackOverflow https://stackoverflow.com/a/4834584/1666829 |
Also improving the documentation around this topic. Closes #2340
Also improving the documentation around this topic. Closes #2340
I've created a Test case showing a StackOverflowError at https://github.com/Andy2003/spring-data-neo4j/tree/complex-test (Andy2003@d54e4be)
The error occurs when in a parent-child mapping the relation is modeled for both directions, like:
and
and data like:
The text was updated successfully, but these errors were encountered: