Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB relationship mapping OneToMany bidrectional

 
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