You can use the Enterprise Java™ Bean (EJB) transformation profile to specify the elements that are transformed into EJBs from your UML model.
The EJB profile defines stereotypes that the EJB transformation interprets to generate EJBs. For example, when you apply the <<Entity>> stereotype to a class in your model, the transformation generates an entity bean from the class. To generate EJBs, you must apply the EJB profile to the source model. You must then apply the stereotypes that the profile contains to the model elements.
The EJB transformation defines constraints for how to apply stereotypes. These constraints generate errors or warnings when you run a validation of your model if you have improperly applied the stereotypes of the EJB transformation profile to the source model elements. To ensure that the EJB transformation generates the expected output, you should correct any errors or warnings before you run it.
Before you apply the EJB transformation profile, you should read the information available at Transformations/Configurations list, click UML to EJB, on the Transformation Description page, click View Transformation Documentation.
. In theRelated tasks
Generating EJBs and Java classes from a model
Applying the EJB transformation profile
Applying the EJB transformation
Related reference
Installed transformations