Solve the problem of setting the field name duplication constraint in powerdesigner.-Great!

Source: Internet
Author: User


My problems:
1. When a model is created in CDM, if multiple tables contain fields with the same name, the field is modified in one table, and the field is modified in all places. It is even dynamic, as if it is associated with an object in the PD.
2. When creating a model in CDM, if the two tables use fields with the same name as the primary key, no problem occurs. An error is reported !!

My experiments:
1. There is no issue in CDM in PDM. In addition, fields of the same name in different tables do not have a dynamic relationship, and fields of the same name can also be used as primary keys. Great!
2. make a PDM with repeated fields and primary key fields, and anti-missile becomes CDM. The result shows that the CDM can allow duplicate fields and primary keys, as is the case in PDM, great! Therefore, I think we can definitely remove the duplicate name constraints when creating the CDM model through some settings.

My solution:
After painstaking efforts, I finally found the place where I set this name again! I have been searching for it for several years! I used to think this is a PD vulnerability. I have asked several PD experts that I have not solved it. Now I think it's just a shame! [If the comrade who posted the post knew this long ago, he smiled.]

Specific Method:
After selecting "tools-> Model Options", the following form is displayed:

Remove the check box "unique code" in the red box! Hahaha

Other problems:
Note that there is a "allow reuse" check box in the red box. We recommend that you remove this check box. In the future, do not worry about the field dynamic modification in the model, after my experiment, even if I copy a field from one table to another, the two fields will not be modified! Haha, great!

We recommend that you remove both hooks and click the "set as default" button to set this as the default setting. In the future, everything will go well! Great!

Those who have been tortured by this problem Leave a message to celebrate ~ Haha

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.