Working with Common Mapping Properties

TopLink associates each mapping with the attribute whose persistence it describes. To create a mapping in the TopLink Mapping editor, select the attribute to map from the Structure window and then click the appropriate button on the mapping toolbar.

Use the TopLink Mapping editor to enter specific information for the mapping. Some mappings require more information that others and have multiple tabs in the editor window. Figure 5-2 shows some common mapping properties.

Figure 5-2 Sample Common Mapping Properties

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

Mapping properties called out in Figure 5-2:

  1. Specify if read-only.
  2. Specify access method.
  3. Specify default null values.
  4. Specify bi-directional relationships.
  5. Specify indirection.
  6. Specify collection options.

Related Topics

About TopLink Descriptors
About TopLink Mapping Types

Specifying Direct Access and Method Access
Specifying Read Only Settings
Defaulting Null Values
Maintaining Bidirectional Relationships
Specifying Field Names and Multiple Tables
Specifying Collection Properties
Specifying Mapping Information in ejb-jar.xml File
Working with Descriptors

 

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