Generating Other Models from a PDM

You can generate PDM objects to other model objects.

PDM

CDM

LDM

OOM

XSM

Domain

Domain

Domain

Domain

Simple Type

Table

Entity

Entity

Class

Element

Table column

Entity attribute

Entity attribute

Attribute

Attribute or element

Primary key

Primary identifier

Primary identifier

Primary identifier

-

Alternate key

Identifier

Identifier

Identifier

-

Foreign key

-

-

-

Keyref constraint

Stored-Procedures

-

-

Operation

-

View

-

-

-

Element

View column

-

-

-

Attribute

Index

-

-

-

Unique

Abstract data type

-

-

-

Complex type

Reference

Relationship

Relationship

Association

-

Note: If the code of the generated XML model objects does not correspond to the target language naming conventions, you can define a code naming convention script to convert object names into codes. For more information on conversion scripts, see Core Features Guide > Modeling with PowerDesigner > Objects > Naming Conventions.

XML Specifics

Generation of column as attribute or element is controlled by generation option

Foreign keys - When a foreign key is not a composition, it is generated as a KeyRef constraint

Oracle 8 and Interbase Sequence Translation

When a CDM is generated from a PDM, the data type of the table column attached to a sequence is translated to a serial data type in the CDM with the format NO%n, where %n is the length of the data type (see Sequences and Intermodel Generation).

OOM Specifics

All tables are generated as persistent classes with the "Generate table" persistence mode.

All abstract data types are generated as persistent classes with the "Generate ADT" persistence mode.

Table - Class. The cardinality of a class is translated from the number of estimated records in a table

Table with migrated keys from only two other tables - Class linked with an association class between the two classes generated by the two parent tables

Stored-Procedures and stored functions attached to selected table - If the parent table is generated as a class, the stored procedure or the stored function is generated as an operation attached to the class

Note: If the code of the generated OOM objects does not correspond to the target language naming conventions, you can define a code naming convention script to convert object names into codes. For more information, see Core Features Guide > Modeling with PowerDesigner > Objects > Naming Conventions.