Cyclic « Relationship « JPA Q&A

1. Cyclic serialisation with Many to Many relationship with Hibernate

I have a parent (Program) pojo with a many-to-many relationship with their children (Subscriber). The problem is when it serialises a Program, it also serialises the Program's Subscribers, which involves serialising their ...

2. Cyclic relationships in Hibernate

I want to map a tree in hibernate, but persisting it results in an exception because of the cyclic reference (the relationships are not bidirectional).

class Node {