This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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 ;-).