I\'ve a classic spring web app with some spring crud repository.
I\'m trying to save my entities within a classic angular form and i\'m getting randomly this error :
As Alex said, to prevent the infinite recursion, you added this annotation
@JsonIgnoreProperties(value = {"exchange"})
@OneToMany(mappedBy = "exchange")
private List halfFlows;
So I actually solved this issue by adding the following to the annotation
@JsonIgnoreProperties(value = {"exchange"}, allowSetters = true)
@OneToMany(mappedBy = "exchange")
private List halfFlows;
This solution is better explained here https://softwareengineering.stackexchange.com/questions/300115/best-way-to-deal-with-hibernate-1-many-relationship-over-rest-json-service