Deep diving into Spring JPA and I have troubles to understand whats going on here. This is the code: Entity SpringBootApp By starting the app, the following gets generated in the DB: I get to the point where all the persons are generated, but I would expect one additional entry in the PERSONP_KNOWS table, e.g. for p2.knownBy.add(p4); But it isnt.
Tag: relationship
JPA Bidirectional relationship throws java.lang.StackOverflowError: null
i’m trying to relate two entities with JPA, when i run the project don’t throws me errors but when i request the method that get me the Voters of a Comunity Leader i get the next Exception: I’ts like a loop, i don’t khow how to resolve this. Here are my classes: 1)Leader Entity : 2)Voter Entity : 3)LeaderController :