# Synchronizing classes

As you work with the classes in your Java project, you will need to update the `persistence.xml` file to reflect the changes.

Use this procedure to synchronize the `persistence.xml` file:

1. Right-click the `persistence.xml` file in the Package Explorer and select Java Persistence > Synchronize Classes.

   Synchronizing the persistence.xml File

   Dali adds the necessary `<class>` elements to the `persistence.xml` file.

2. Use the Persistence XML Editor to continue editing the `persistence.xml` file.

Working with persistence.xml file

The persistence.xml file