When you create a mapping, it is displayed in the Mapping list in the lower part of the Mapping Editor dialog box, called the Mappings pane.
The Mappings pane content changes automatically depending on the object you select in the Target pane:
Selected object |
Mappings pane displays... |
---|---|
Folder, model or package |
A summary of the mappings it contains. |
Object |
The same content as the Mapping tab in the object property sheet: Sources of the mapped object, mappings of its sub-objects if any, criteria, and SQL queries to execute the mapping if any. |
Sub-object |
The same content as the object mapping property sheet ("Mapped to" expression and the sources of the sub-object, which are PDM, OOM, XSM or CDM source objects for the target object). |
You can create several different mappings for a single target object. Also, the same target object can have several sources. In the following illustration the SALE class has two different mappings Mapping_5 and Mapping_6. Also Mapping-6 has two sources: CITY and SALE.
All the mappings for a selected object in the Target pane are displayed in the Mapping list located in the lower part of the Mapping Editor dialog box. You can select one and modify it using the different queries sub-tabs displayed in the lower part of the Mappings pane, or by clicking the Properties tool to the right of the Mapping list to open its property sheet (see Object Mappings Properties).
The following tools help you manage mappings for a data source in the Mappings pane:
You have a target object but you do not know its sources yet. You create a mapping using the Create Mapping tool. The mapping object can be compared to a container for the target object and its source objects. A selection dialog box opens to let you select one or more sources for your target object that is then displayed in the Object Sources sub-tab in the Mappings pane.
Then you have to select the sub-objects (source and target) to map using the sub-object column for the target and the Mapped to column for the source in the Sub-Object mapping sub-tab.
Then you can configure SQL queries using the Criteria, Select, Insert, Update and Delete sub-tab, as a mapping consists in performing modifications in the data source using SQL.