Applying the UML-to-JPA transformation profile

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

  1. In the Project Explorer view, double-click a model or a package in a model.
  2. In the Properties view, on the Profiles page, click Add Profile.
  3. In the Select Profile dialog box, click Deployed Profile.
  4. From the Deployed Profile list, select JPA Transformation.
  5. Click OK.
  6. Click File > Save.
  7. 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.

Feedback