I'm wondering what is the main diffrence between those two annotations? Both are to fight with Infinite recursive loop problem. But in example
Difference between @JsonIgnore and @JsonBackReference, @JsonManagedReference
@varren showed usage of @JsonBackReference
and I think that he created Infinite recursive loop as well. Also when I try to use @JsonBackReference
, it also creates a recursive loop in contrast to @JsonIgnore
? So how can we manage the case of Infinite loop in order to use @JsonBackReference
?