Lesson 1.2: Add JPA support to the project
In this lesson you will learn how to add JPA support to the dynamic Web project that you imported in the previous lesson.
Before you begin, complete Lesson 1.1: Import the required resources.
Add the JPA facet to the project
- Right-click the JPATutorial project and then click
Properties. The Properties page opens.
- Click
Project Facets. The Project Facets property page opens.
- Under Project Facets, select
Java Persistence 1.0 and then click Finish.
Java Persistence 1.0 is now listed as a facet of the project.
- Click OK. The Properties window closes.
Lesson checkpoint
You have completed Lesson 1.2. In this lesson, you learned how to add JPA support to a dynamic Web project.