Creating UML-to-Java transformation relationships

If you want to understand how the model elements of your source model relate to the Java™ elements in the target project, you can instruct the transformation to create derived relationships from generated Java elements to their UML source model element. After the transformation generates source-to-target relationships for enterprise beans, you can only remove them manually. You must edit the individual Java files for each enterprise bean and delete the source-to-target relationship tag from the file’s Javadoc HTML documentation.

Before you apply the UML-to-Java transformation, you should read the information that is available at Modeling > Transform > Configure Transformations. From the Transformations/Configurations list, select UML to Java. On the Transformation Description page, click View Transformation Documentation.

You must be in the Modeling perspective.

To create UML-to-Java transformation relationships:
  1. Click Modeling > Transform > Configure Transformations.
  2. In the Configure Transformations window, in the Transformations/Configurations list, select a transformation configuration.
  3. Click the Common tab.
  4. On the Common page, click Create source to target relationships.
  5. Click Apply.
  6. Click Close.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.