Editing data models

Editing a data model involves modifying or deleting components of the model.

About this task

Note: When editing data models, ensure that you click the correct DataModels folder on the Navigator tab on the IBM® Rational® Integration Tester Tools application window before making any changes.

The following table describes how to use the Data Model Editor in the Rational Integration Tester Tools application to edit a data model.

To... Do this...
Rename an entity, attribute, or reference. 1. On the canvas, right-click the entity, attribute, or reference (as applicable).

2. Click Show Properties View on the shortcut menu.

3. In the Name field, modify the name of the entity, attribute, or reference (as applicable).

4. Press ENTER.

Move an attribute between entities.
Note: An attribute can be moved from one entity to another. If the model has instance data, the data can be mapped between instances of the affected entities by providing a foreign key mapping from the original entity to the new entity when the Data Model Editor is saved.
1. On the canvas, drag an attribute from the original entity object and drop it on the second row of new entity object.

2. Click Save to open the Mapping dialog box, which enables you to specify how instances of one entity can be mapped to another entity.

3. On the Mapping dialog box, select the Use these mappings for all feature moves from <Source Entity> to <Target Entity> check box if you want to reuse the current mapping for any future attribute moves between the currently selected entities. Alternatively, click No Mapping if you do not want to create a mapping between the currently selected entities.

Move a reference between entities. 1. On the canvas, move the source (non-arrow) end of the reference line to the target entity.

2. Click Save to open the Mapping dialog box, which enables you to specify how instances of one entity can be mapped to another entity.

3. On the Mapping dialog box, select the Use these mappings for all feature moves from <Source Entity> to <Target Entity> check box if you want to reuse the current mapping for any future attribute moves between the currently selected entities. Alternatively, click No Mapping if you do not want to create a mapping between the currently selected entities.

Modify the type of a reference. 1. On the canvas, move the destination (arrow) end of the reference line to the target entity.

2. Click Save to open the Mapping dialog box, which enables you to specify how instances of one entity can be mapped to another entity.

3. On the Mapping dialog box, select the Use these mappings for all feature moves from <Source Entity> to <Target Entity> check box if you want to reuse the current mapping for any future attribute moves between the currently selected entities. Alternatively, click No Mapping if you do not want to create a mapping between the currently selected entities.

Modify the cardinality of a reference. 1. On the canvas, right-click the reference.

2. Click Show Properties View on the shortcut menu.

3. In the Upper Bound field, enter 1 (for a 0..1 reference) or -1 (for a 0..* reference).

4. Press ENTER.

Merge two attributes of an entity. 1. On the canvas, hold CTRL and click the two attributes of an entity that you want to merge.

2. Click Merge Attributes on the shortcut menu.

3. On the Merge Attributes dialog box:

  • In the Attribute to retain list, click the attribute that you want to retain as the resulting single attribute.
  • In the Precedent attribute list, click the attribute that has the value that will be used in situations where an instance of that type has data for each attribute.
Delete an entity, attribute, or reference.
Note: If you delete an entity, any stored instance data for that entity is also deleted. If you delete an attribute or a reference, all data for that attribute/reference is deleted from instances of the entity that contains that attribute/reference.
1. On the canvas, right-click the entity, attribute, or reference (as applicable).

2. Click Delete from Model on the shortcut menu.

To verify any changes that you have made to a data model:

Procedure

  1. After clicking Save in the Data Model Editor, view the Data Models window on Rational Integration Tester’s Architecture School perspective.
  2. If there is more than one data model listed on the upper left of the Data Models window, click the data model that you have modified in the Data Model Editor to refresh its details on the Data Models window. (You might have to reselect the data model to refresh the window.)

Feedback