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.
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) |
||
Field transformer associations (see Configuring Field Transformer Associations) |
||
Indirection (lazy loading) (see Configuring Mapping Comments) |
||
Mapping comments (see Configuring Mapping Comments) |
||
Method or direct field access (see Configuring a Type Conversion Converter) |
||
Read-only mapping (see Configuring Read-Only Mappings) |
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: