Use this procedure to convert an existing Java project to a JPA project.
From the Navigator or Project explorer, right-click the Java project and then select Configure > Convert to JPA Project. The Project Facets page of the Modify Faceted Project wizard appears.
Change the Configuration to Default JPA Configuration.
Click Next. JPA Facet page appears.
Complete the fields on the JPA Facet page to specify your vender-specific platform, JPA implementation library, and database connection.
Click Manage libraries to create or update your JPA user libraries. Click Download libraries to obtain additional JPA implementation libraries.
If Dali derives the incorrect schema, select Override the Default Schema for Connection. Using this option, you can select a development time schema for defaults and validation.
If you clear the Create orm.xml option (which is selected by default), you can later add a mapping file to the project using the Mapping File Wizard.
Click Finish.
The Dali OR Mapping Tool adds the JPA implementation libraries to your project and creates the necessary orm.xml
and perisistence.xml
files.