PowerDesigner use summary (rpm)

(Tips: This blog articles are welcome to reprint, but please indicate the source: Chenxin Han, http://www.blogjava.net/hankchen )
First, the use PowerDesigner to generate HTML functions

After using the design database relationships PowerDesigner, you can generate HTML, the team members for discussion.

Step 1: Create a new Report;

Select [file] --- --- [new]] [Multi-Model Report, and then define Report Name, the name of the main HTML, select Language.

Step 2:  Select Model to be generated;

In the Model Name  Select HTML generation Model, and then select a Report template, here recommended to choose [Stand Physical Report], and then click OK.

Step 3:  generating the HTML;

Just select the newly created Report, right, [Generate] --- [HTML], select the storage path. And then select [Save], you're done.

Second, create an index

1. Double-click Table, Table Properties pop-up window:

2. Add a new index.

3. Select unique, the index set a unique index.

4. Double-click on the row where the index to bring up the Properties window index (Index Properties).

5. Double-click the Add Column button to bring up the Selection window.

6. Select column of the table contains an index, and click OK.

Third, add tables and columns Notes Notes

Table 1. Note: Double-click the table, Table Properties pop-up window, fill out the comment

2. Notes column: Double-click on the left menu tree in the row, column properties pop-up window, fill out comment

Fourth, the use PowerDesigner design and construction of MySQL database

(1) using PowerDesigner make building a database script
1, design CDM (Conceptual is the Data Model)
2, select  Tools -> the Generate Physical the Data Model  , select the corresponding DBMS as MySQL, generate PDM
3, select  Database -> the Generate Database  , the pop-up  database generation  dialog box, select the script and the script file name the access path
4, building a database and click OK to generate database scripts (* .sql)

(2) building a database using the script to establish a database
1, landing  MySQL -u root -p
2, the establishment of Create an empty databse mydbse databse;
. 3, the establishment of a user  Grant * All mydbse to [email protected] oN IDENTIFIED by 'password';.
. 4, exit  exit;
. 5, in a terminal  mysql -h 192.168.1.100 -u username - P <script.sql . 6, the enter input password 

V. Show Comments Options

PowerDesigner design table shows the Notes options: select to edit the table, right -> Properties-> Columns-> Customize Columns and Filter ( or directly with the shortcut keys Ctrl + U) -> Comment (front of check) -> OK 

Sixth, the increment fields using MySQL 's auto_increment

Open the table properties window →  Columns  → open → id column select columns properties window → Check to identity.

Seven, remove the SQL script in double quotes

The Database  →  the Edit the DBMS Current  →  General  →  Script  →  the Sql  →  the Format  →  CaseSensitivityUsingQuote set to NO

Eight, set the Entity automatically adjust the size

Click on the Entity Right-click the Format ... menu item → → → select the size tab to check the Auto adjust to text

Nine, automatically adding comments Generate Name in Empty Comment

Has been designed with PowerDesigner, and generates table structure Oracle, Oracle for the generation of columns in the table have to manually supplement Comment field. Today my colleagues brought PowerDesigner can automatically replace explanatory Comment Name (in the PD can see his results, but he also forgot how to set up). Under the Internet to find information on, say how many are using the RUN SCRIPT method. Finally, after PowerDesigner find help, the original is very simple. Set as follows: [Database] -> [Database Generation] -> [Options] -> Empty Comment in the Generate Name did not write Comment If you design it with a Name instead. 
 
 
 

X. Name field changes to the table when, Code does not automatically follow the change?  Tools-> General    the Options-> Dialog: Operation    Modes:     NameToCodeMirroring (= the checked to false) 

XI, remove the default new table and field names with double quotation marks problem

Open Database -> Edit Current the DBMS  , an edit screen appears in the box on the right, find the script sub-node and then in turn find sql -> format  node,

Below such a property name: CaseSensitivityUsingQuote, the value of this attribute is set to "NO", the generated look script, on all double quotes are removed.

 

 

Error Problem:

1.Powerdesigner create and open the project prompted to print the wrong question

Error message: Before you can perform printer-related tasks (such as page setup or printing a document), you must have installed the printer. Would you like to install the printer it?

Run ==> services.msc ==> open Print Spooler

Print Spooler: the file is loaded into memory for printing wait ...

WIN8
第一步:打开C:/windows/system32/spool/printers 把里面的东西全部删掉; 
第二步:win+R 打开运行栏,输入“regedit”点确定打开注册表,找到HKEY--LOCAL--MACHINE / SYSTEM / controlset 001 / control / print ,把Environments 和printers 两个文件夹里面的东西全部删掉;
第三步:右键我的电脑 → 管理 → 服务与应用程序 → 服务,找到Remote Procedure Call (RPC) 和 Remote Procedure Call (RPC) Locator 都设置成自动启动,然后启动Printe Spooler 并设置为自动启动;
第四步:重启电脑; 第五步:去添加打印机吧,你会惊喜的发现,噢麦嘎!可以添加了,哈哈。

 

Reproduced in: https: //my.oschina.net/garyun/blog/602769

Guess you like

Origin blog.csdn.net/weixin_33834910/article/details/91774531