In my case I was doing: @JsonManagedRefence and @JsonBackReference, which are wrong since these ones are only for parent-child relationship.
For ManytoMany use: @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id") Hope this helps someone.