View Question

Can i set primary key for attribute in UML class diagram?

Hi, Can i set primary key for attribute in UML class diagram? When i convert to ER Diagram, i have to set PK for each entity.

Product: Astah Professional

Hi Erik,

Yes, add <> stereotype to the attribute. It will be converted into a primary key. Image Text

For more information about the rule when converting UML Class diagram to ER Diagram, please refer to the TIPS below:

https://astahblog.com/2017/03/28/convert-class-erd/

Hope this helps!

Satomi

Answer Question

This content has the following tags: