• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

entity relationships in DD

 
Joe McIntyre
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HF EJB page 395:
Since there could be many relationships in the <relationships> section, how does the container figure out which two <ejb-relationship-role> thingys are the partners in a relationship? In the example on page 395, I see nothing in one relationship that links it to the other, and vica versa.
 
Nicky Moelholm
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

Sorry, I have not had the pleasure of reading the Head First Book yet. However, I do believe I can answer your question.
The relationships element has ejb-relation as subelements. Each ejb-relation has exactly two ejb-relationship-role subelements which describes each of the two parties involved in the CMR.

Hope you can use this answer. Remember, when in doubt, look in the specification - in this you will also find the complete DD-DTD in which you will find exact answers to your problems.
 
Joe McIntyre
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks... completely overlooked that element.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic