Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Configuring a Relational Transformation Mapping (ELUG)"

m (New page: This section describes the various components that you must configure in order to use a relational transformation mapping. * For information on how to configure EclipseLink mappings option...)
 
m
Line 62: Line 62:
  
  
 +
This example shows how to create a transformation mapping and add it to a descriptor using Java code.
 +
 +
<span id="Example 46-1"></span>
 +
''''' Transformation Mapping'''''
 +
 +
<pre>
 +
public void customize(ClassDescriptor descriptor) {
 +
    TransformationMapping mapping = new TransformationMapping(); 
 +
 +
    // configure mapping
 +
    ...
 +
 +
    // add mapping to descriptor
 +
    descriptor.addMapping(mapping);
 +
}
 +
</pre>
  
 
For more information, see the following:
 
For more information, see the following:
Line 67: Line 83:
 
* [[Introduction%20to%20Relational%20Mappings%20(ELUG)|Transformation Mapping]]
 
* [[Introduction%20to%20Relational%20Mappings%20(ELUG)|Transformation Mapping]]
 
* [[Configuring%20a%20Relational%20Mapping%20(ELUG)|Configuring a Relational Mapping]]
 
* [[Configuring%20a%20Relational%20Mapping%20(ELUG)|Configuring a Relational Mapping]]
 
+
* [[Creating%20and%20Configuring%20Mappings%20(ELUG)|Creating and Configuring Mappings]]
  
 
----
 
----

Revision as of 12:17, 30 November 2007

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

  • For information on how to configure EclipseLink mappings options common to two or more mapping types, see Configuring a Mapping.
  • For information on how to create EclipseLink mappings, see Creating a Mapping.

This table lists the configurable options for a relational transformation mapping.

Option Workbench Java

Attribute transformer (see Configuring Attribute Transformer)

Supported

Supported

Field transformer associations (see Configuring Field Transformer Associations)

Supported

Supported

Indirection (lazy loading) (see Configuring Mapping Comments)

Supported

Supported

Configuring a Type Conversion Converter

Supported

Supported

Mapping comments (see Configuring Mapping Comments)

Supported

Supported

Method or direct field access (see Configuring a Type Conversion Converter)

Supported

Supported

Read-only mapping (see Configuring Read-Only Mappings)

Supported

Supported


This example shows how to create a transformation mapping and add it to a descriptor using Java code.

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:


Copyright Statement

Back to the top