JPA: How to have one-to-many relation of the same Entity type

Viewed 106330

There's an Entity Class "A". Class A might have children of the same type "A". Also "A" should hold it's parent if it is a child.

Is this possible? If so how should I map the relations in the Entity class? ["A" has an id column.]

2 Answers
Related