Attaching an Annotation to a Model Object

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:

  1. Double-click a class or other object to open its property sheet, and then click the Annotations tab.
  2. Click in the Annotation Name column, and select an annotation from the list.


  3. 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.
  4. [optional] Click the Preview tab to see the code that will be generated for the class, with its declaration preceded by the annotation:


  5. Click OK to return to the diagram.