Skip Headers
Oracle® TopLink Developer's Guide
10g Release 3 (10.1.3.1.0)

Part Number B28218-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

40 Configuring a Relational Many-to-Many Mapping

This chapter describes the various components that you must configure in order to use a relational many-to-many mapping.

For more information, see the following:

Table 40-1 lists the configurable options for a relational many-to-many mapping.

Relational Many-to-Many Mapping Configuration Overview

Table 40-1 lists the configurable options for a relational many-to-many mapping.

Configuring a Relation Table

The relation table contains the columns for the primary keys of the source table and target table involved in the many-to-many mapping. You must create this table in the database before completing the mapping. See "Working With Databases" for information on creating database tables.

In Figure 33-5, the PROJ_EMP table serves as the relation table between the PROJECT and EMPLOYEE tables.

Using TopLink Workbench

To select a relation table for a mapping, use this procedure:

  1. Select the mapped attribute in the Navigator. Its properties appear in the Editor.

  2. Click the General tab. The General tab appears.

    Figure 40-1 Table Reference Tab, Relation Table Option

    Description of Figure 40-1 follows
    Description of "Figure 40-1 Table Reference Tab, Relation Table Option"

Use the Relation Table field to select a database table to define this mapping.