Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Code Generation Options
When you generate code for your model, you can set certain options. These include:
· | The default language |
· | Whether to generate methods for implemented interfaces |
· | The Unicode options for code generation |
Access Project | Settings | Project Options | Source Code Engineering
Configure code generation options
Field/Option |
Action |
See also |
Always synchronize with existing file (recommended)
|
Select the radio button to synchronize imported code with an existing file. |
|
Replace (overwrite) existing source file
|
Select the radio button to overwrite the existing source file with imported code. |
|
Component Types |
Click on this button to open the Import component types dialog, to set up the importation of component types.
|
|
Default Language for Code Generation
|
Click on the drop-down arrow and select the default language for code generation. |
|
DDL Name Templates |
Click on the Browse (...) button to define the template names for Primary Key, Unique Constraint, Foreign Key and Foreign Key Index Name templates.
|
Define Primary Key Name Template Define Foreign Key Name Template Define a Foreign Key Index Template
|
Default name for associated attrib
|
Type in a default name to be generated from imported attributes. |
|
Generate methods for implemented interfaces |
Select the checkbox to indicate that methods are generated for implemented interfaces.
|
|
Code page for source editing |
Click on the drop-down arrow and select the appropriate Unicode character embedding format to apply.
|
|
Notes
· | It is worthwhile to configure these settings, as they serve as the defaults for all Classes in the model; you can override most of these on a per-Class basis using the custom settings (from the Code Generation dialog) |