File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes foriegn key in CMR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "foriegn key in CMR" Watch "foriegn key in CMR" New topic

foriegn key in CMR

Nitin Dindorkar

Joined: Nov 14, 2003
Posts: 6
In CMP we dont map foriegn key in relation between 2 two beans. We use the CMR feild instead (the bean itself ).
Does that mean that in the Relational database table there is no foriegn key as referential integrity between two tables ? Please explain.
Can we built entity bean based on the existing tables, in that case what do we do with foreign key ?
THank you.
Nitin Dindorkar
Sudhir V
Ranch Hand

Joined: Dec 25, 2002
Posts: 143
CMR relationships are used to take care of Foreign keys and its better coz you get the whole foreign object and then u can extract individual columns from it. Please elaborate ur question a bit.

Sudhir V<br />(SCJP 1.2, SCWCD, OCA, SCBCD)
I agree. Here's the link:
subject: foriegn key in CMR
It's not a secret anymore!