Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Define a Primary Key Name Template

If you have specific modeling conventions that stipulate how Primary Keys are documented, you can customize the way in which the Primary Keys are named by default. By changing the Primary Key Name Template, you adjust the name that the system assigns to the UML Operation representing the Primary Key.

Access     Tools | Options | Source Code Engineering | Code Editors: DDL Name Templates

Define the name template for a Primary Key

Step

Action

See also

1

Click on the DDL Name Templates button ( ... ).

The DDL Name Template dialog displays, showing the default name templates.

 

 

2

Edit or replace the template in the Primary Key Name field.

For example, if you want to display the Primary Key description as

PK_tablename_columnname
 

then change the Primary Key Name field to

PK_%tablename%_%columnname%.

 

 

3

Click on the Save button.

 

 

?>