PowerDesigner supports the Java 5.0 built-in annotations, the .NET 2.0 built-in custom attributes and for both Java 5.0 and .NET 2.0, also allows you to create your own. You can attach annotations to types and other model objects:
- Double-click a class or other object to open its property sheet, and then click the Annotations tab.
- Click in the Annotation Name column, and select an annotation from the list.
- If the annotation takes parameters, you can enter them directly in the Annotation Text column or click the ellipsis button to open the Annotation Editor.
- [optional] Click the Preview tab to see the code that will be generated for the class, with its declaration preceded by the annotation:
- Click OK to return to the diagram.