• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kyle Brown.
Julien.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic