You can make a Java class into one of the following persistent types:
To add persistence to an existing Java class:
Right-click the class in the Project Explorer and select JPA Tools > Make Persistent. The Make Persistent dialog appears.
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