Creating a new JPA project |
Use this procedure to create a new JPA project.
Select File > New > Other. The New Project dialog appears.
On the New Project dialog, select JPA > JPA Project and click Next. The New JPA Project wizard appears.
Complete the fields on the New JPA Project page to specify the project name and location, target runtime, and pre-defined configuration.
Click Next. The Project Facets page appears.
Select the project facets to use to create the project and click Next. The JPA Facet page appears.
Complete the fields on the JPA Facet page to specify your vender-specific platform, database connection, and JPA implementation library.
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. |
Click Finish. You should now open the JPA Development perspective.