Skip Headers

Oracle TopLink Developer's Guide 10g Release 3 (10.1.3) B13593-01 |
| Home | Solution Area | Contents | Index

Previous | Next |

# Configuring Query Key Association

The API to configure query key associations is `oracle.toplink.mappings.VariableOneToOneMapping` method `addForeingQueryKeyName(String, String)`.

## Using TopLink Workbench

To specify the query keys used for a variable one-to-one mapping, use this procedure:

1. Select the variable one-to-one mapping in the Navigator. Its attributes appear in the Editor.

2. Click the Query Key Associations tab. The Query Key Associations tab appears

   Figure 41-5 Query Key Association Tab

   Description of "Figure 41-5 Query Key Association Tab"

Use the following information to enter data in each field on the tab:

Use the Indicator Type to specify the data type of the class indicator field by selecting the data type from the list.

Field | Description
--- | ---
Foreign Key | The field from the database table to use as the foreign key in this relationship.
Query Key Name | The name of the query key (from the referenced descriptor) for this association. See "Configuring Query Keys" for more information.