When trying to convert a JPA object that has a bi-directional association into JSON, I keep getting
org.codehaus.jackson.map.JsonMappingException: Infinite
Working fine for me Resolve Json Infinite Recursion problem when working with Jackson
This is what I have done in oneToMany and ManyToOne Mapping
@ManyToOne @JoinColumn(name="Key") @JsonBackReference private LgcyIsp Key; @OneToMany(mappedBy="LgcyIsp ") @JsonManagedReference private List safety;