This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Many-to-many relation: How is my ejb container aware of a table not mentioned anywher  RSS feed

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am still struggling with the same many-to-many ejb relation and before rushing into coding and possibly running into big problems I would like to understand a few points about CMR and CMP.
I have three tables which are mapped to two ejbs as follows:
*First table, called "establishments", contains two fiels "db_establishment_id" and "db_establishment_name".
Here is a sample:

*Second table, called "categories", contains two fields "db_category_id" and "db_category_name"
Here is a sample:


*Third table, called "establishments_categories", contains two fields "db_establishment_id" and "db_id_category"
Here is a sample:

These THREE tables map to TWO ejbs in a many-to-many bi-di relation.

My question is as follows:
How is my ejb container aware of a table not mentioned anywhere (here establishments_categories)? How does it update or read from this table if it is not mentioned anywhere in the DDs? Do I need to mention it in my vendor-specific DD? Can you give me a sample of that vendor-specific DD?
Thanks in advance,
Julien Martin.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The quick answer is yes, it's specified in the vendor specific DD. I don't have a WebSphere example handy right now...
Kyle
 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kyle Brown.
Julien.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!