Creating One-to-One Mappings

Use this procedure to create a one-to-one mapping.

To create a one-to-one mapping:

  1. In the Application Navigator, select the mapping to be mapped and click the One-to-One Mapping button One-to-one Mapping button. on the mapping toolbar.
    The One-to-one mapping tab appears in the Editor pane.

    Figure 7-6 One-to-One Mapping General Properties

    This figure shows the General tab of a one-to-one mapping.

  2. Enter the required information on the General tab (see "Working with Common Mapping Properties" ).
  3. You can also specify:
  4. Click the Table Reference tab to choose the reference.

    Figure 7-7 One-to-One Mapping Table Reference Properties

    This figure shows the <b>Table Reference</b> tab of a one-to-one mapping.

  5. Use the Table Reference tab to select the necessary foreign key pairs.

Related Topics

About TopLink Mapping Types

 

Copyright © 1997, 2004, Oracle. All rights reserved.