39 Configuring a Relational Transformation Mapping

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

This chapter includes the following section:

For information on how to configure TopLink mappings options common to two or more mapping types, see Chapter 121, "Configuring a Mapping".

For information on how to create TopLink mappings, see Chapter 120, "Creating a Mapping".

Table 39-1 lists the configurable options for a relational transformation mapping.

39.1 Introduction to Relational Transformation Mapping Configuration

Table 39-1 lists the configurable options for a relational transformation mapping.

Table 39-1 Configurable Options for Relational Transformation Mapping

Option Oracle JDeveloper
TopLink Workbench

Attribute transformer (see Section 121.15, "Configuring Attribute Transformer")

Supported Supported Supported

Field transformer associations (see Section 121.16, "Configuring Field Transformer Associations")

Supported Supported Supported

Indirection (lazy loading) (see Section 121.3, "Configuring Indirection (Lazy Loading)")

Supported Supported Supported

Mutable Section 121.17, "Configuring Mutable Mappings"

Supported Supported Supported

Mapping comments (see Section 121.8, "Configuring Mapping Comments")

Supported Supported Supported

Method or direct field access (see Section 121.6, "Configuring Method or Direct Field Accessing at the Mapping Level")

Supported Supported Supported

Read-only mapping (see Section 121.2, "Configuring Read-Only Mappings")

Supported Supported Supported

Example 39-1 shows how to create a transformation mapping and add it to a descriptor using Java code.

Example 39-1 Transformation Mapping

public void customize(ClassDescriptor descriptor) { 
    TransformationMapping mapping = new TransformationMapping();  

    // configure mapping

    // add mapping to descriptor

For more information, see the following: