After you define naming standards using the NSM Option Editor, select individual model objects and apply the standards. The glossary words and abbreviations (or alternate abbreviations) that are defined in the active NSM Option object are applied as naming standards to a model.
Follow these steps:
The Model Naming Options dialog opens.
The naming standards are applied when you switch from a logical model to a physical model.
In a Logical/Physical model, define the naming standards, create the abbreviations, and select the object that uses the glossary in the Logical view. Switch from the Logical view to the Physical view and the standards are applied.
In a Logical Only (LO) or a Physical Only (PO) model, define the naming standards, create the abbreviations, select the object that uses the glossary, and then derive a PO or an L/P model. In the Derive Model wizard, go to Naming Standards. Select the model that has an active NSM object as the active model template. The naming standards are applied to the derived model.
Note: The translation from logical to physical through the NSM Option Object works only if the physical name is inherited from the logical name. That is, only if the names have not been manually changed in the physical model. If a physical name is modified in a logical/physical model, the inheritance from the logical side to the physical side is overridden. The naming standards no longer work. However, you can reset the override property to inherit from the logical name to restore this inheritance.
NSM File Attached to an Older Version Model
When you open a model from an older version of the product, it is upgraded to the current release. If an NSM file was attached to the model, the file is not imported and attached to the model automatically. Import the NSM file to a template and attach the template to the model manually.
Use this example to create database specific templates and standardize database specific properties across all your data models. If you want to include the Naming Standards in each database specific target template, you must change the naming standards glossary list for each template. You must change the glossary for each template, because the Naming Standards information is stored within a model. This section describes how you can manage Naming Standards from a single source.
Follow this process:
If you have to change something in the glossary, you just change the Naming Standards object in the logical model template and save the template. When you open a model, if the auto-synchronize option is enabled, the database specific template model is opened. Next, the logical model template is opened and the Naming Standards object is synchronized with the database specific template. The remaining template information is also populated in the new model.
Example
This section includes two examples with two different databases—DB2 and Oracle. The examples use templates that are stored in a Mart.
To create each database specific template in ERwin:
You now have a logical/physical model with all the pre-populated information from the TmplGeneral logical model template. You can add any common DB2 characteristics that you want all your DB2 models to share.
In addition, make the following changes:
You can now use these database specific templates for your application data models. Either create a new model, or, bind an existing data model to the database specific template model manually. If you are binding an existing model, review the model to verify that no properties in the template model will cause issues with the existing model when synchronized.
In this example, creating a new application data model using the template is used as a starting point.
Now you have a DB2 application data model with all the properties from both the TmplGeneral template and the TmplDB2 template.
Notice that the abbreviation is automatically applied through the template hierarchy to this application data model for DB2.
Copyright © 2015 CA Technologies.
All rights reserved.
|
|