TOC Special:Whatlinkshere_Configuring_an_EIS_One-to-One_Mapping_(ELUG)[Related Topics]
For information on how to create EclipseLink mappings, see Creating a Mapping.
This table lists the configurable options for an EIS one-to-one mapping.
[Table 79-1]#
Option to Configure
Workbench
Java
Reference descriptors
Foreign key pairs
Bidirectional relationship
Method or direct field access at the mapping level
Read-only mappings
Private or independent relationships
Indirection (lazy loading)
Mapping comments
Selection interaction
For more information, see the following:
In a one-to-one EIS mapping, you relate a source object attribute to a target object attribute by specifying one or more pairs of source and target object fields.
In a one-to-one EIS mapping with key on source (see EIS One-to-One Mappings with Key on Source) using XML records, EclipseLink puts the target XML field value into the source object’s record as a simple value.
In a one-to-one EIS mapping with key on target (see EIS One-to-One Mappings with Key on Target) using XML records, EclipseLink uses the source XML field value in the selection interaction to acquire the appropriate instance of target object.
To specify the source and target XML field pairs for a one-to-one EIS mapping, use this procedure:
-
Select the one-to-one EIS mapping in the Navigator. Its properties appear in the Editor.
-
Click the General tab. The General tab opens. [Figure 79-1]#General Tab, Foreign Keys Field
-
Click Add in the Foreign Keys area to add a key pair. The Specify Field Pair dialog box appears. [Figure 79-2]#Specify Field Pair Dialog Box
-
Click Browse to add a foreign key for the Source XPath and Target XPath fields.
Category:_EclipseLink_User’s_Guide[Category: EclipseLink User’s Guide] Category:_Release_1[Category: Release 1] Category:_Task[Category: Task] Category:_EIS[Category: EIS]