Create a JPA project

In order to begin, you must create a new Java project.

  1. Select File > New > Project. The New Project dialog appears.

  2. On the New Project dialog, select JPA > JPA Project and click OK. The New JPA Project dialog appears.

  3. On the New JPA Project dialog, enter Employee as the Project name and click Next. The Project Facets page appears.

  4. Verify that you have selected a Java 5.0 (or higher) and JPA 1.0 facet, and click Next. The JPA Facet page appears.

  5. Select your vender-specific platform, database connection, and JPA implementation library, and click Finish.

Eclipse adds the project to the workbench and opens the Java perspective.

Persistence Perspective

This figure shows the main parts of the Persistence Perspective: The Persistence Outline and Persistence Properties views.

The next step is to Create persistent Java entities.