This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB relationship mapping OneToMany bidrectional Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB relationship mapping OneToMany bidrectional" Watch "EJB relationship mapping OneToMany bidrectional" New topic
Author

EJB relationship mapping OneToMany bidrectional

liang teh
Greenhorn

Joined: Sep 27, 2007
Posts: 1
I have just started using EJB 3.0. I have a situation like this an Order can have many items and these items need to know which orders they belong to so it is a bidirectional relationship.

I have specify the relationship below. I do not understand why the relationship mapping will fail if I uses (this.items = items) in the order class.

Please advise, thank you!

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB relationship mapping OneToMany bidrectional
 
Similar Threads
Implementing interface with list of generics
checkbox - initial value
Urgent Help Required with Checkboxes!
problem in parsing an XML using SAX parser.
selectManyCheckbox