# Make Persistent dialog

Use this dialog to add persistence to a Java class.

Property | Description
--- | ---
Annotate in Java | Specify if Dali should use annotations. If disabled, Dali will add persistence information in the XML mapping file.
Add to XML mapping file | Specify if Dali should add persistence information in the XML mapping file. If disabled, Dali will use annotations.

Java classes

For each Java class, select the Mapping type:

- Entity

- Embeddable

- Mapped superclass

List in persistence.xml | Specify if Dali should add persistence properties to the persistence.xml file.

Related tasks

- Adding persistence to a class

- Creating a JPA entity