Relationship Mapping Wizard: Initial Setup

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.

The Relationship Mapping wizard takes you through the following steps:

  1. Initial set up.
  2. Link the mapped tables directly in a 1:1 or 1:n relationship, or using a join table.
  3. If you link the mapped tables using a join table, the next step is to map the relationship field to a second key, either local or foreign.

In this page, you perform the intial setup for preparing to map the related beans, fields and primary table.

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

Legal Notices