Page 1 of 1

Infinite recursion

Posted: Thu Mar 16, 2017 3:10 pm
by rajaman
Hi, I have just started using broadleaf. I tried to write an Api call to fetch data from SkuBundleItemImpl table and got infinite recursion error . I looked into the SkuBundleItemImpl entity and found that it had @ManyToOne relationship with ProductBundleImpl which had @OneToMany relationship with SkuBundleItemImpl.

I know one of the solution is to use @JsonIgnore annotation in entity but entity code is in framework. So it's simply not possible to go and add this annotation. Could you guys give me a better approach to tackle this issue.