You must apply the Java Persistence API (JPA) transformation
profile to your source UML model to generate JPA entities. If you
do not apply the stereotypes of the profile to elements in the source
model, the transformation will not JPA entities.
Before you begin
You
must have a model open in the Modeling perspective.
About this task
To apply the transformation profile:
Procedure
- In the Project
Explorer view, double-click a model or a package in a model.
- In the Properties view,
on the Profiles page, click Add Profile.
- In the Select
Profile dialog box, click Deployed Profile.
- From the Deployed Profile list,
select JPA Transformation.
- Click OK.
- Click .
- Optional: To validate the model or model element
to which the profile is applied, in the Project Explorer view, right-click
the item; then click Validate.