I would like to know the difference between @JsonManagedReference and @JsonBackReference in Jackson?
@JsonManagedReference
@JsonBackReference
I prefer @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id", scope = Long.class) where property is the name of primary key field and scope is Type of it
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id", scope = Long.class)