Relationship Mapping Wizard: Map to Key

See Also 

When you have foreign-key relationships between database tables, you will usually want to preserve those relationships in the CMP beans mapped to those tables. The Relationship Mapping wizard lets you determine how relationships between mapped CMP beans are stored in the database. Relationships enable navigation from one bean to another, in the same way that a foreign key enables navigation from one table to another.

This panel shows:

The wizard will attempt to determine the most logical key column pairs between the two related beans based on existing foreign keys. If there are no foreign keys, you need to create the key column pairs by selecting local and foreign columns.

To create a compound key, use the Add Pair button.

If you want to map a relationship using a join table, go back to the previous panel and select Link the Mapped Tables with a Join Table.

See Also
Relationship Mapping Wizard
         Initial Setup
         Local to Join
         Join to Foreign
Mapping
Primary and Secondary Tables
Selecting a Secondary Table
Mapping Fields to Multiple Columns

Legal Notices