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:
|
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: