wood burning stoves*
The moose likes Websphere and the fly likes How to mapping cmr field into DB with WSAD5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "How to mapping cmr field into DB with WSAD5.0" Watch "How to mapping cmr field into DB with WSAD5.0" New topic
Author

How to mapping cmr field into DB with WSAD5.0

Liz Lee
Greenhorn

Joined: Feb 23, 2003
Posts: 6
There are many-many relationship with two CMP enitiy bean. I want to mapping their relationship into another table.
For example, Users and Roles in system is many-many relationship.
The table "t_userrole" with 'userId' and 'roleId' fields records the relationship between user and role.
UserBean has a cmr field named 'roles';
RoleBean has a cmr field named 'users';
But I don't know how to mapping these cmr fields into t_userrole talbe.
Thx.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to mapping cmr field into DB with WSAD5.0
 
Similar Threads
cascade-delete doesn't work
Chapter 7 - HF study group
one-to-one relationship
Help me out for EJB2.0 CMR fields mapping in XDOCLET.......
insert null in FK field (set null in cmr field ) CMP 2.0