File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

foriegn key in CMR

Nitin Dindorkar
Greenhorn

Joined: Nov 14, 2003
Posts: 6
Hi,
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: http://aspose.com/file-tools
 
subject: foriegn key in CMR