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:
- Initial set up.
- Link the mapped tables directly in a 1:1 or 1:n relationship, or using a
join table.
- 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.
- Verify that the Related Bean and Related Field are set. If not, then
you need to cancel out of the wizard and set them in the standard
relationship setup for the bean before proceeding.
- Verify that the Primary Table is set for the related bean.
- Select between linking the tables directly, or through a join 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