# Creating a new JPA project

Use this procedure to create a new JPA project.

1. From the Navigator or Package Explorer, select File > New > Project. The Select a wizard dialog appears.

   Tip: You can also select the JPA perspective and then select File > New > JPA Project.

   Selecting the Create a JPA Project wizard

2. Select JPA Project and then click Next. The New JPA Project page appears.

   The JPA Project Page

3. Complete the fields on the New JPA Project page to specify the project name and location, target runtime, and pre-defined configuration.

   Note: The Target Runtime is not required for Java SE development.

4. Click Next. JPA Facet page appears.

   The JPA Facet Page

5. Complete the fields on the JPA Facet page to specify your vender-specific platform, database connection, and JPA implementation library.

   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.

   Note: If the server runtime does not provide a JPA implementation, you must explicitly select a JPA implementation library. To insure the portability of your application, you must explicitly list the managed persistence classes that are included in the persistence unit. If the server supports EJB 3.0, the persistent classes will be discovered automatically.

6. Click Finish. You should now open the JPA Development perspective.

Create New JPA Project wizard
JPA Development perspective
Mapping File Wizard

Managing the persistence.xml file
Adding persistence to a class

Understanding Java persistence
The persistence.xml file

JPA Development perspective

Managing the persistence.xml file
Adding persistence to a class

Understanding Java persistence
The persistence.xml file