How can I make a relationship with a second-level child using openjpa.
Parent -> Child -> GrandChild
Parent has a property lets say, plant, the child does not have it, however the grand child do. So, how can I make a relationship to the grand child directly from parent in order to get only those children having same plant as their parent in their child level(GrandChild). (Preferably one sided).
The simplest option is to move from Parent --> Plant --> GrandChilds.
Meaning you will need:
Additionally (to be coherent)
After doing so you will be able to do: