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

CMR in CMP EJBs  RSS feed

Sri Basvanahally
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two tables:

VENDOR and APIs that have a Many to Many relationship. I have a join table TPCP_APIs.

I have two CMP EJBs, one mapped to Vendor and the other to API.

I made CMR fields for each other in the two EJBs.

My question is, how can I do an insert in the join table only (without creating a new Vendor or API) ?

Can I use a create method in the Vendor EJB like create(vendor_id, api_id) ?

or something similar in the API EJB as in: create(api_id, vendor_id) ?

Thanks for any help !
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!