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.
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 |
Java |
---|---|---|---|
Attribute transformer (see Section 121.15, "Configuring Attribute Transformer") |
|||
Field transformer associations (see Section 121.16, "Configuring Field Transformer Associations") |
|||
Indirection (lazy loading) (see Section 121.3, "Configuring Indirection (Lazy Loading)") |
|||
Mapping comments (see Section 121.8, "Configuring Mapping Comments") |
|||
Method or direct field access (see Section 121.6, "Configuring Method or Direct Field Accessing at the Mapping Level") |
|||
Read-only mapping (see Section 121.2, "Configuring Read-Only Mappings") |
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 descriptor.addMapping(mapping); }
For more information, see the following: