< Previous | Next >

 

Lesson 1.6: Create JPA manager beans

In this lesson you will learn how to generate JPA manager beans for the JPA entity beans that you created in the previous lessons. JPA manager beans are used to manage all of the data access related to your JPA entities, such as retrieving data through queries and updating your entities.

Before you begin, complete Lesson 1.4: Create entity beans from the database tables.

 

Generate entity managers

  1. In the Enterprise Explorer view, right-click on one of the entity beans (Department.java or Employee.java) and select

    JPA Tools | Add JPA Manager Beans.

  2. In the JPA Manager Bean Wizard, select both

    Department and

    Employee.

  3. Click

    Finish. this creates employee.list.controller package and manager beans for each entity.

 

Lesson checkpoint

You have completed Lesson 1.6. In this lesson, you learned how to create entity managers for your JPA entity beans.

< Previous | Next >