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 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 |
Instructs PowerDesigner to generate target model object codes from source model object names using the appropriate conversion script (see Name and Code Conversion Scripts). This option can be useful when generating models with very different naming conventions. If it is not selected, target object codes are generated from source object codes. For example an OOM Java class attribute code may be customerName whereas the PDM table column that you want to generate must be called CUSTOMER_NAME. By selecting this option and specifying the appropriate conversion scripts in the model options available from the General tab, you can generate your columns with appropriate codes. |
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 is automatically displayed as soon as you click the Enable Transformations button. |
Skip single root element |
[XSM-PDM only] Specifies to ignore a single root element and to treat its immediate child elements as multiple roots, which will be generated as tables. |
Generate columns/attributes as elements |
[PDM-XSM only], Specifies that PDM table columns 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 when generating a PDM:
The following options are available when generating a PDM:
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 the Generating and Reverse Engineering OO Source Files chapter in Object-Oriented Modeling.