I have currently a big problem with Hibernate and Jackson FasterXML. I have a parent class "Structure Parent" with :
@OneToMany(mappedBy = "structureParent", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List<Site> sites = new ArrayList<Site>();
And a site class with
@ManyToOne
@JoinColumn(name = "annualStructureId")
@JsonIgnore
private StructureParent structureParent;
The problem is I can't display the structureParent in the XML because of an infinite loop but I need the structureParent id in my XML. Do you know if I could do that ?
Thank you.