r/SpringBoot • u/ashut0sh_27 • Mar 02 '26
Question confusion about entity mapping in data jpa
so I am familiar with the concepts of dbms but finding it hard to implement in program like all that owning and inverse side then json loop. Watched some yt videos but it didn't cleared the confusion. can someone explain or share some resources for the same
2
Upvotes
View all comments
Show parent comment
4
u/kspr2024 Mar 03 '26
I think he might be referring to using JPA bi-directional association and marshaling such an entity into JSON will result in infinite loop and finally throws StackOverflowError.