taa_sarge wrote:
Well maybe a bad example. In my example, a parent can have many children (2 kids in the family) . And a child can have many parents (mother and father).
I am asserting that a child cannot exist without first having a mother and father.
If you want to enforce this rule, you can use 2 separate one-to-many relationships.
This will also eliminate the need to have a separate many-to-many mapping table, as your child objects can contain 2 parent references (father/mother). See below:
father(1) -> children(many)
mother(1) -> children(many)
child.getMother()
child.getFather()