Generate either a RAPCache or a RAPStore physical data model from a RAP Messages logical data model.
-
Open the RAP Messages model.
-
From the PowerDesigner main menu, choose .
-
In the General tab of the PDM Generation Options dialog, choose either:
-
Generate new Physical Data Model
-
Update existing Physical Data Model
-
For a new model, choose the target DBMS and the appropriate Name and Code.
-
For RAPCache, choose:
Field |
Value |
DBMS
|
Sybase AS Enterprise 15.5
|
Name
|
Keep the default, RAP Cache, or enter another name. |
Code
|
Auto-generated from Name. For example, when Name is RAP Cache, Code is RAP_CACHE. |
-
For RAPStore, choose:
Field |
Value |
DBMS
|
Sybase IQ 15.2
|
Name
|
Keep the default, RAP Store, or enter another name. |
Code
|
Auto-generated from Name. For example, when Name is RAP Store, Code is RAP_STORE. |
-
To update an existing model, select the model and leave Preserve Modifications selected.
-
Click the Detail tab.
-
(Optional) Choose Check model and Save generation dependencies.
-
Ensure that Enable transformations is selected.
-
For a new model, click the Extensions tab and ensure that the appropriate extension is selected:
-
RAPCache when generating a new Adaptive Server Enterprise
-
RAPStore when generating a new Sybase IQ
-
On the Pre-generation and Post-generation tabs, ensure that all transformation rules are selected.
Post-generation tab appears only for new models.
-
On the Selection tab, select RAP messages to create tables for in the RAPCache or RAPStore, and choose OK.
-
When updating an existing model, in the Merge Models dialog, confirm the updates you want and choose OK.
Next
After generation, check indexes, set physical options, and add foreign keys as needed.