This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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