Chapter 5 Generating from a Conceptual Data Model


Defining CDM generation options

You can set the following general generation options:

Option Description
Check Model When selected, verifies the model before generating the CDM, and stops generation if an error is found
Save Generation Dependencies When selected, PowerDesigner keeps track of the identity of the origin of each generated object. It is useful when merging two CDM which have been generated from the same CDM. Objects can be compared and recognized as the same object, even if the object has been modified in the merged CDM. If not selected, origin objects have no link with generated objects
CDM/CDM Mapping When selected, allows to define the current CDM as the data source of the generated CDM and to create object correspondence between source and target CDM. If you select the CDM/CDM mapping option, the Save Generation Dependencies option is automatically selected because CDM/CDM mapping uses object identifying numbers. You cannot deselect the Save Generation Dependencies option as long as the CDM/CDM mapping option is selected
Enable transformations This button is used to activate transformations during generation.

When you click this button, the Pre-generation tab is displayed if the source model contains transformations. You can select the transformations to execute before generation.

The Extended Model Definitions tab also is displayed for you to select extended model definition files to attach to the generated model. These files may contain post-generation transformations, in this case, the Post-Generation tab is displayed to let you select the transformations you want to be executed in the generated model. If the generation is an update, and the generated model contains extended model definitions with post-generation transformations, the Post-generation tab automatically is displayed as soon as you click the Enable Transformations button

Note   Check model before generation
If you select the Check Model option, the procedure to generate a CDM starts by checking the validity of the CDM . A CDM results when no errors are found. You can set check options by selecting Tools→Check Model.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.