Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Define Primary Key Name Template
Enterprise Architect enables you to customize the way Primary Keys are named by default. This is helpful if you have specific modeling conventions that stipulate how Primary Keys are documented.
By changing the Primary Key Name Template, you adjust the name that Enterprise Architect assigns to the UML Operation that represents the Primary Key.
Access Tools | Options | Source Code Engineering | Code Editors: DDL Name Templates
How to
To 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 Template field. For example, if you want to display the Primary Key description as PK_tablename_columnname then change the Primary Key Name Template field to PK_%tablename%_%columnname%.
|
|
3 |
Click on the Save button.
|
|