The following options are available on this tab:
Option |
Description |
---|---|
Check Model |
Invokes a model check before generation, and stops generation if errors are found. You can configure specific model checks before generation by selecting Checking a Model. . For more information, see |
Save Generation Dependencies |
Instructs PowerDesigner to retain links between each source object and the corresponding target object, which allow objects to be subsequently identified, even if they have been modified. |
Generate Mappings |
Defines the source model as the data source of the generated model and creates mappings between all source and target objects. This option is dependent on the Save Generation Dependencies option. |
Rebuild Triggers |
[CDM-PDM and OOM-PDM generation only] Instructs PowerDesigner to build triggers with preservation option, after the PDM generation. Rebuild takes place after merge if you are updating an existing PDM |
Convert Names into Codes |
Specifies that target model object codes are generated from source model object names using the appropriate conversion script. This can be useful when generating models with very different naming conventions. Otherwise, target codes are generated from source codes. For example an OOM Java class attribute code may be "customerName" whereas a PDM table column may be "CUSTOMER_NAME". With this option selected, both objects will have their codes generated from their names. |
Enable transformations |
Enables pre- and post-generation transformations. 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 |
Generate columns/attributes as elements |
When selected, columns in the PDM tables are generated as child elements (instead of attributes) in the XML model. You can then set attributes to these child elements |
Class Prefix |
Prefix for a class. It can help identify a class in a model |
The following options are available during CDM-PDM and OOM-PDM generation:
The following options are available during CDM-PDM and OOM-PDM generation:
If you modify a primary key in a PDM, then regenerate the PDM from a CDM, the modified primary key is not preserved. If you want to preserve a modified primary key, you need to modify the identifier in the CDM before regeneration.
When you reverse engineer a database into a PDM and then generate an OOM with the corresponding O/R mapping, you can use the Add Package Hierarchy feature to create the appropriate packages in the OOM. You select the Add Package Hierarchy command from the object model contextual menu. For more information see chapter Generating for a language in the Object-Oriented Modeling guide.
For more information on conversion scripts, see Using a Conversion Script.