24.12.2012 Views

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

ER/Studio - Embarcadero Technologies Product Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USING <strong>ER</strong>/STUDIO > DEVELOPING THE LOGICAL MODEL<br />

• While subtypes can be specified as complete or incomplete, you’ll get a visual indication of it only in IDEF1X. To<br />

see the distinction in IE (Crow’s feet) you can view it in the Subtype Cluster Editor, or use a naming convention or<br />

color as a mnemonic.<br />

• IE is more flexible in supporting subtypes, permitting roll up (generalization) and roll down (specialization)<br />

transformations.<br />

Resolving Name Duplication in Parent and Child Entities (Unification)<br />

The Duplicate Attribute Editor displays when you create or rename primary key attributes, relationships, or foreign<br />

keys and it duplicates existing attributes, columns, or foreign keys in child tables or entities. For example, if you have<br />

two entities called Parent and Child where Parent has a primary key called Key and Child also has an attribute called<br />

Key, when you create a relationship from Parent to Child, then the Duplicate Native Attribute Editor launches where<br />

you must decide how to handle the propagated attributes.<br />

NOTE: If the child entity has a foreign key with the same name as the parent entity, the Duplicate Attribute<br />

Editor launches if you have selected Prompt to Resolve FK Columns on the Application tab of the<br />

Options editor. Select Tools > Options.<br />

TIP: The option, Allow Unification when Editing Names on the Options Editor - Name Handling tab<br />

allows you to change the role names of foreign attribute or columns to the same names as other<br />

attributes or columns in the same Entity or Table.<br />

Attribute Name Editing Options<br />

The following describes the options and functionality on the Duplicate Attribute Editor:<br />

• Propagating Attributes to Resolve: Displays a list of the Attributes/Columns that are duplicates. Select the<br />

propagating attribute that you want to resolve then select the way you want to propagate.<br />

• Replace Native Attribute with propagating Attribute: If selected, <strong>ER</strong>/<strong>Studio</strong> replaces the attribute in the child<br />

with the propagated foreign key attribute. If the relationship is deleted from the main model, <strong>ER</strong>/<strong>Studio</strong> removes<br />

the propagated attribute and original native attribute from the child entity.<br />

• Rolename propagating Attribute: If selected, you can rename the foreign key so that the native attribute in the<br />

child entity can still exist with its original name. After propagation, both attributes will exist in the child entity.<br />

• Change Native Attribute Name to allow propagating Attribute Name: If selected, you can rename the original<br />

native attribute in the child entity so that the attribute name from the parent entity can be used for the foreign key.<br />

After propagation, both attributes will exist in the child entity.<br />

• Unify Native Attribute with propagating Attribute: If selected, <strong>ER</strong>/<strong>Studio</strong> unifies the propagating foreign with<br />

the native attribute in the child table. If the relationship is later deleted, <strong>ER</strong>/<strong>Studio</strong> leaves the native child attribute.<br />

Examples of Duplicate Name Resolutions<br />

The following examples illustrate how duplicate names are resolved depending on the options chosen in the Duplicate<br />

Attribute Editor dialog.<br />

EMBARCAD<strong>ER</strong>O TECHNOLOGIES > <strong>ER</strong>/STUDIO® 8.0.3 US<strong>ER</strong> GUIDE 140

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!