You can apply the Enterprise JavaBeans™ (EJB) transformation profile to control how the EJB transformation generates EJBs and java code from your UML model.
Parent topic: Generating EJBs and Java classes from a model
Related concepts
EJB transformation
EJB transformation profile
Related reference
Installed transformations