This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB3 simple schema problem - please help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB3 simple schema problem - please help!" Watch "EJB3 simple schema problem - please help!" New topic
Author

EJB3 simple schema problem - please help!

Adam Koprowski
Greenhorn

Joined: Oct 22, 2007
Posts: 3
Hello,

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
Adam Koprowski
Greenhorn

Joined: Oct 22, 2007
Posts: 3
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 ;-).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB3 simple schema problem - please help!
 
Similar Threads
Datable Problem !
Dynamic dataTable Using JSF
creating a tree-like structure and its functions
positioning scrollbar
error in passing values from child window to parent window