Creating a new project

This quick start shows how to create a new JPA project.

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

  2. On the New Project dialog, select JPA > JPA Project and click Next. The Create a Java Project dialog appears.

    New JPA Project

    New JPA Project dialog.
  3. On the Create a JPA Project dialog, enter a Project name (such as QuickStart).

  4. Select your Target Runtime (such as Apache Tomcat) and click Next. The Project Facets dialog appears.

  5. Verify that the Java Persistence facet is selected and click Next. The JPA Facet dialog appears.


    Note:

    You must configure your project to use Java version 5.0 (or higher). See "Requirements and installation" for more information.

  6. On the JPA Facet dialog, select your database connection (or create a new connection), JPA implementation library (such as TopLink Essentials), define how Dali should manage persistent classes, and click Finish.

    JPA Facet Dialog

    JPA Facet dialog.

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

Project in Package Explorer

Package Explorer showing the JPA project.

Now that you have created a project with persistence, you can continue with Creating a Java persistent entity.