The UML-to-Java transformation and the UML-to-EJB transformation add the @generated tag to certain generated elements. When you rerun a transformation, the transformation overwrites elements with the @generated tag. The transformation also overwrites qualifiers and members of classes, and qualifiers, parameters, and the body of methods.
The UML-to-Java transformation and the UML-to-EJB transformation add the @generated tag to the following generated elements:
Before you rerun the UML-to-Java transformation, you can remove the @generated tag from the elements that you do not want the transformation to overwrite. Instead, you might want to edit the @generated tag by inserting characters after the @ character; for example, @wasgenerated. Inserting characters can help you to identify the generated code that will not be overwritten when you rerun the transformation.
The UML-to-EJB transformation does not add the @generated tag to enterprise bean classes and interfaces. However, the transformation adds the @generated tag to the methods of enterprise bean classes and interfaces that it generates from the corresponding source model operations. So, when you rerun the UML-to-EJB transformation, it does not overwrite the beans that the transformation previously generated.