The UML-to-Java transformation and the UML-to-EJB 3.0 transformation
add the @generated annotation, which also called the @generated tag,
to certain generated elements. When you rerun a transformation, the
transformation overwrites elements that contain the @generated tag.
The transformation also overwrites qualifiers
and members of classes, and qualifiers, parameters, and the body of
methods.The UML-to-EJB 3.0 transformation adds the @generated tag to the
following generated elements:
- Classes that do not have stereotypes of the UML-to-EJB 3.0 transformation
profile applied
- Interfaces that do not have stereotypes of the UML-to-EJB 3.0
transformation profile applied
- Fields
- Methods
Other annotations
The
UML-to-EJB 3.0 transformation overwrites annotations in the previously-generated
code. To ensure that the transformation does
not overwrite annotations, you can include the annotation
details in the corresponding stereotype in the source model. Completing
this step also ensures that annotation details are not removed when
you reconcile changes during the iterative development process.