Learn about UML-to-EJB 3.0 transformations and when to
use mapping models.
UML-to-EJB 3.0 transformations
The UML-to-EJB 3.0 transformation
generates Enterprise JavaBeans (EJB)
3.0 and Java code from Unified
Modeling Language (UML) model elements. You must apply the stereotypes
of the UML-to-EJB 3.0 transformation profile to UML model elements
to generate enterprise beans.
Reverse transformations: EJB 3.0 to UML When you create a UML-to-EJB 3.0
transformation configuration and enable the Reconciled
Modeling design
contract management protocol (DCMP), the EJB 3.0-to-UML transformation
is automatically enabled. Reverse transformations enable you to reconcile
changes in an iterative development process.
About mapping models You
can specify alternate file names for any of the files and folders that a transformation
generates by creating a mapping model. You can specify alternate names if
you want to include code-specific details such as naming restrictions in platform-specific
models, or if the logical organization of the source model is not appropriate
as target packaging.
Considerations when you rerun UML-to-EJB 3.0 transformations
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.