Inheriting mapping declarations in model-to-model transformation mapping projects

You can specify that a mapping declaration inherits the mapping rules in another mapping declaration. Inheriting mapping declarations encourages the reuse of mapping rules in other mapping declarations. A mapping declaration cannot inherit more than one inherited mapping declaration.

You must have a mapping model open. A mapping model has .mapping as a file name extension. The mapping model must contain at least one mapping declaration. The mapping declaration must specify an input object and an output object.

To specify that a mapping declaration inherits another mapping declaration:

  1. In the mapping editor area, in a mapping declaration, drag the connector of the input object to the name of the output object. A mapping rule is created between the input and output objects.
  2. Change the type of mapping rule to an inherited maps mapping rule: On the shape that is displayed on the connector between the input and output objects, click the down arrow and click Inherited Maps.
  3. Right-click the Inherited Maps element; then click Show in Properties.
  4. In the Properties view, on the Super Type tab, complete the following steps:
    1. In the File field, specify the mapping model that contains the mapping declaration to inherit.
    2. In the Map field, specify the mapping declaration to inherit.
  5. Click File > Save.
You can override the mapping rules of the inherited mapping declaration, and create additional rules in the inheriting mapping declaration.
Related tasks
Changing mapping rule types in mapping projects
Creating mapping rules in mapping projects

Feedback