I'm having a really silly problem but I really cannot handle it - can you guys please help? I want to have two entity beans: Adult & Child, where every child should have two references to adult: mother & father. I want the relation to be bi-directional. Can anybody throw a few lines with the appropriate code? Because whatever I'm doing, I'm getting it all wrong.
Thanks a lot in advance! Adam
Joined: Oct 22, 2007
As a matter of fact adult-child was not a good example because I want the relation to be 1-1. So for the sake of the example, suppose every adult can only have 0 or 1 children ;-).