In order to apply well-defined O/R Mapping strategies, PowerDesigner provides default transformation rules for model generation. We will introduce these rules in detail in the following sections. You can also customize transformation using persistence settings and generation options.
-
Create the OOM, defining object-oriented model elements, persistent classes, inheritance links and associations etc, to describe the static features of your model domain.
-
Define transformation settings to apply transformation rules. See Basic transformations.
-
Define generation options.
-
On the General tab, specify the DBMS type, the name and code of the generated PDM. You can also click the Update existing Physical Data Model radio button to update the existing PDM. This option allows you to do round trip generation.
-
On the Detail tab, click the O/R Mapping checkbox, in order for PowerDesigner to automatically generate O/R Mapping between the PDM and the OOM. You can also specify table prefix that will apply to all the generated tables.
-
Select the OOM objects that you want to transform into PDM objects on the Selection tab.