PowerDesigner's table design shows the configuration operation scenario of Comment

You may use PowerDesigner for database design, but you find that the table design does not include Comment by default (as shown below), which is sometimes inconvenient.

b7319fd5bc889a3bd21f978c7739a7b3.png

This is configurable, but relatively complex. Click "Model" -> "Extended Model Definitions" on the toolbar.

e31db477f3dc2073351657e79b5af2c5.png

Create a new record and click Properties.

4c241ee0a78d5248e014f2bc0c5cb192.png

Right-click on Profile and select "Add Metaclasses".

7b31f98f9ea022450d1d49f6df4bf23a.png

Select "Column",

3501136401d1806e9da3bd68b7864ce9.png

Right-click the newly created Column and select "New" -> "Extended Attribute".

a2ed3ad6aff6ada70b61db6156417fbc.png

Enter the new extended attribute information, Name is the name (AttComment here), select "Computed" and "Read only",

ce8df4962a6efe73de82fb79744667f8.png

Open the "Get Method Script" tab and replace the content of "%Get% = """ with "%Get% = Rtf2Ascii (obj.Comment)".

206847b8270e61608bc6dd5feddd2360.png

Click OK,

689e2d818c611e16ce2639e38219ccf6.png

Select "Tools" -> "Display Preferences" in the toolbar and open Advanced.

3496588160317f344de9da91ca6c1341.png

Select Columns and click the magnifying glass button on the right.

ec483621a737b6648fa7d91d6c32e709.png

Select the extended attribute name just created (here AttComment),

f7ac79e4705fc1c78496d7382a29efa3.png

Comment will be displayed in the table design window.

976dbaee6274ab389cdbdc8643f2caa6.png

Although the display of Comment can be realized through the above operations, I don't know why it is designed to be such a complicated configuration. It may be because the design angle is different, but at least it can be configured, which shows that the configuration is relatively flexible.

If you think this article is helpful, please feel free to click "Like" and "Reading" at the end of the article, or forward it directly to pyq,

b8bf85b9b7d86c33f855925b1bdbda3f.png

Recently updated articles:

" Troubleshooting and Solution Paths to Scenarios with High Linux Disk IO Utilization "

" MySQL Query Optimization "

" Can the size of SQL transactions exported by mysqldump be controlled?

" MySQL remote login prompts Access denied scenario "

" Usage scenarios of JDBC connection parameter useCursorFetch "

Recent hot articles:

" Recommend a classic paper on Oracle RAC Cache Fusion "

" The shock that the open source code of the "Red Alert" game brings to us "

Article classification and indexing:

Classification and indexing of 1,300 articles on public accounts

Guess you like

Origin blog.csdn.net/bisal/article/details/133365853