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 Direct-to-Field Mapping (ELUG)"
m (→Introduction to Relational Direct-to-Field Mapping Configuration) |
m |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="float:right;border:1px solid #000000;padding:5px">__TOC__ | <div style="float:right;border:1px solid #000000;padding:5px">__TOC__ | ||
[[Special:Whatlinkshere/Configuring a Relational Direct-to-Field Mapping (ELUG))|Related Topics]]</div> | [[Special:Whatlinkshere/Configuring a Relational Direct-to-Field Mapping (ELUG))|Related Topics]]</div> | ||
− | |||
− | |||
− | |||
− | |||
For information on how to create EclipseLink mappings, see [[Creating%20a%20Mapping%20(ELUG)|Creating a Mapping]]. | For information on how to create EclipseLink mappings, see [[Creating%20a%20Mapping%20(ELUG)|Creating a Mapping]]. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
This table lists the configurable options for a relational direct-to-field mapping. | This table lists the configurable options for a relational direct-to-field mapping. | ||
<span id="Table 34-1"></span> | <span id="Table 34-1"></span> | ||
− | |||
− | {| class="RuleFormalMax" dir="ltr" title="Configurable Options for Relational Direct-to-Field Mapping" summary="This table lists the configurable options common to Relational Direct-to-Field Mapping | + | {| class="RuleFormalMax" dir="ltr" title="Configurable Options for Relational Direct-to-Field Mapping" summary="This table lists the configurable options common to Relational Direct-to-Field Mapping and indicates if the option can be configured with the Workbench, Java, or both." width="100%" border="1" frame="border" rules="all" cellpadding="3" frame="border" rules="all" |
|- align="left" valign="top" | |- align="left" valign="top" | ||
! id="r1c1-t2" align="left" valign="bottom" | ''Option to Configure'' | ! id="r1c1-t2" align="left" valign="bottom" | ''Option to Configure'' | ||
Line 80: | Line 70: | ||
[[Image:support.gif|Supported]]<br /> | [[Image:support.gif|Supported]]<br /> | ||
|} | |} | ||
+ | |||
This example shows how to create a direct-to-field mapping and add it to a descriptor using Java code. | This example shows how to create a direct-to-field mapping and add it to a descriptor using Java code. | ||
Line 85: | Line 76: | ||
<span id="Example 36-1"></span> | <span id="Example 36-1"></span> | ||
''''' Direct-to-Field Mapping''''' | ''''' Direct-to-Field Mapping''''' | ||
− | |||
− | |||
− | + | <pre> | |
− | + | public void customize(ClassDescriptor descriptor) { | |
+ | DirectToFieldMapping mapping = new DirectToFieldMapping(); | ||
− | + | // configure mapping | |
− | + | ... | |
− | + | ||
+ | // add mapping to descriptor | ||
+ | descriptor.addMapping(mapping); | ||
+ | } | ||
+ | </pre> | ||
For more information, see the following: | For more information, see the following: | ||
− | + | * [[Introduction%20to%20Relational%20Mappings%20(ELUG)#Direct-to-Field Mapping|Direct-to-Field Mapping]] | |
− | * [[Introduction%20to%20Relational%20Mappings%20(ELUG)|Direct-to-Field Mapping]] | + | |
* [[Configuring%20a%20Relational%20Mapping%20(ELUG)|Configuring a Relational Mapping]] | * [[Configuring%20a%20Relational%20Mapping%20(ELUG)|Configuring a Relational Mapping]] | ||
− | * [[ | + | * [[Configuring%20a%20Mapping%20(ELUG)|Configuring a Mapping]]. |
+ | |||
Line 108: | Line 101: | ||
[[Category: EclipseLink User's Guide]] | [[Category: EclipseLink User's Guide]] | ||
− | [[Category: | + | [[Category: Release 1]] |
[[Category: Concept]] | [[Category: Concept]] | ||
+ | [[Category: ORM]] |
Latest revision as of 07:37, 20 August 2008
For information on how to create EclipseLink mappings, see Creating a Mapping.
This table lists the configurable options for a relational direct-to-field mapping.
Option to Configure | Workbench | Java |
---|---|---|
This example shows how to create a direct-to-field mapping and add it to a descriptor using Java code.
Direct-to-Field Mapping
public void customize(ClassDescriptor descriptor) { DirectToFieldMapping mapping = new DirectToFieldMapping(); // configure mapping ... // add mapping to descriptor descriptor.addMapping(mapping); }
For more information, see the following: