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 |
- |
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
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).
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