Adding persistence to a class

You can make a Java class into one of the following persistent types:

To add persistence to an existing Java class:

  1. Right-click the class in the Project Explorer and select JPA Tools > Make Persistent. The Make Persistent dialog appears.

    Make Persistence Dialog

  2. Complete the fields on the Make Persistent dialog, specify the persistence mapping for each class, and click Finish.

Dali adds the necessary annotation or entry in the XML mapping file for the class.

Related reference

Related concepts