Closed ramazansakin closed 2 years ago
For usage question, please use either mailing lists:
or git chatter:
Second: your question seems to be through another framework (and annotations) which may change handling. It would probably be necessary to try to use annotations and read/write with only Jackson annotations to isolate the issue. Or maybe reach to to Spring users' help forums first.
Hi, I used @JsonManagedReference and @JsonBackReference first on my entities like:
and
and then when I try to add new airport, I got :
But when I try to switch the references, it worked properly. Also, when I add @JsonIgnore annotation any of entity, it also worked properly. From all above, what is the purpose of exact usage of @JsonManagedReference and @JsonBackReference ?
Thanks