-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Simplest way to use @JsonManagedReference #294
Comments
I have exactly the same problem that the "solution" from #129 (which is missing an This is the solution proposed in #129 (which is not working):
I found out that it is working if do not only pull the
|
A true life saver, but it'd be nice to have this working with the constructor too. I spent some considerable time debugging until I got to this thread |
We're trying to use
@JsonManagedReference
but so far the@JsonBackReference
is null when we deserialize.We tried the approach from #129 .
But actually this test doesn't check that the back reference is set when deserializing. We added
assertNotNull(value.colors.single().car)
and then the test fails.
The example from #149 works, but it uses a backing field, which we'd prefer not to use.
What's the simplest way to get the example from #129 to work?
The text was updated successfully, but these errors were encountered: