Converting a project into a JPA project

Many JPA tools become active in Eclipse JEE only if the project is a JPA project. Although we have created a Maven project, it is easy to add an Eclipse JPA facet to it:

  1. Right-click on the project and select Configure | Convert to JPA Project:
Figure 4.20: Addding a JPA facet to a project
  1. Make sure JPA is selected.
  2. On the next page, select EclipseLink 2.5.x as the platform.
  3. For the JPA implementation type, select Disable Library Configuration.
  1. The drop-down list for Connection lists any connections you might have configured in Data Source Explorer. For now, do not select any connection. At the bottom ...

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.