Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic