Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB relationship mapping OneToMany bidrectional  RSS feed

 
liang teh
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!