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 the ".convert_code and .convert_name Macros" section in the Customizing Generation with GTL chapter of the Customizing and Extending PowerDesigner manual.

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 a table column attached to a sequence is translated to a serial data type in the new model.

The resulting CDM serial data type for an entity property has the format NO%n, where %n is a number indicating the length of the data type.

For more information on sequences, see sections on Oracle and Interbase in DBMS-Specific Features.

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 on conversion scripts, see the ".convert_code and .convert_name Macros" section in the Customizing Generation with GTL chapter of the Customizing and Extending PowerDesigner manual.