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

37 Configuring a Relational One-to-One Mapping

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

For more information, see the following:

Table 37-1 lists the configurable options for a relational one-to-one mapping.

Relational One-to-One Mapping Configuration Overview

Table 37-1 lists the configurable options for a relational one-to-one mapping.

Configuring Joining at the Mapping Level

TopLink supports configuring an inner join at the mapping level for one-to-one mappings only. When a class that owns the mapping is read, the TopLink runtime will always get the class and the target of the one-to-one mapping with one database hit.

Use this feature only if the target object is always required with the source object, or when indirection is not used.

You can also configure join reading (see "Join Reading and Object-Level Read Queries") at the query level.

For more information about joins, see "Expressions for Joining and Complex Relationships".

Using TopLink Workbench

To use joining in a relationship 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 37-1 General Tab, Use Joining Option

    Description of Figure 37-1 follows
    Description of "Figure 37-1 General Tab, Use Joining Option"

To use joining with this relationship, select the Use Joining option.