aspose file tools*
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 Spring in Action this week in the Spring 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!

 
Don't get me started about those stupid light bulbs.
 
subject: EJB relationship mapping OneToMany bidrectional