< 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, you must 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.
    Screen shot showing selection of available JPA entities in the JPA Manager Bean Wizard.
  3. Click Finish. this creates employee.list.controller package and manager beans for each entity.
    Screen shot showing the new manager beans in the Package Explorer view.

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 >

Feedback