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

42 Configuring a Relational Direct Collection Mapping

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

For more information, see the following:

Table 42-1 lists the configurable options for a relational direct collection mapping.

Relational Direct Collection Mapping Configuration Overview

Table 42-1 lists the configurable options for a relational direct collection mapping.

Configuring Target Table

Each direct collection stores reference information in a target table. In Figure 33-6, the RESPONS table contains the primary key and object of the instance owning the collection. You must create this table in your database.

Using TopLink Workbench

To specify the direct collection specifics, 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 42-1 General Tab, Target Table Options

    Description of Figure 42-1 follows
    Description of "Figure 42-1 General Tab, Target Table Options"

Use the Target Table list to select the table that contains the reference fields for the direct collection mapping.

Configuring Direct Value Field

The direct value field, located in the reference table, stores the primitive data value. In Figure 33-6, the DESCRIP field stores the collection.

Using TopLink Workbench

To specify the direct collection specifics, 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 42-2 General Tab, Direct Value Field

    Description of Figure 42-2 follows
    Description of "Figure 42-2 General Tab, Direct Value Field"

Use the Direct Value Field list to select the field from the Target Table table that contains the object of the collection.