Configuring JPA manager beans

  1. Create a JPA enabled dynamic Web project.

  2. Create a JPA entity bean.

  3. Create JPA manager beans.

To configure a JPA manager bean:

  1. In Enterprise Explorer, right-click the JPA manager bean that you want to configure and select

    JPA Tools | Configure JPA Manager Beans. The JPA Manager Bean wizard opens.

  2. In the JPA manager list, select the manager bean that you want to configure and click Next.

  3. For each manager bean, you can configure:

    Primary Key

    For each manager bean, specify the primary key. The primary key uniquely identifies each record in a set of data.

    Query Methods

    Add new query methods, edit existing query methods, or delete query methods associated with a JPA Manager Bean. The query method is added to your JPA Manager Bean and determines which JPA data is displayed on the Web page.

    Relationships

    Add new relationships between JPA entities or delete relationships.

    Concurrency Control

    Specify the optimistic lock value for the entity. The optimistic lock value ensures that correct results for concurrent operations are generated.

    Advanced options

    Set advanced options.