Show Table of Contents


5.7. Persistence Descriptor
When creating persistent data objects, the
persistence.xml file is created by default when the user opens the project editor and selects . It can then be configured via the Persistence Descriptor. The Persistence Descriptor is accessible by opening the Project Editor, and clicking → .

In the section, it is possible to change or delete all the properties generated by default and add new ones as well.

If you open the section in the Persistence Descriptor, you will see that there are two available buttons:
- enables the user to add arbitrary classes to the
persistence.xmlfile to be declared as entities. - will automatically load all the persisteable data objects in the current project.


Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.