Configuring JPA entity beans

Procedure

  1. In Package Explorer, right-click the JPA project and select JPA Tools > Configure JPA Entities. The Configure JPA Entities wizard opens.
  2. In the Available JPA Entities list, select the JPA entity beans that you want to configure or click Create New JPA Entities to create new entities. Click Next.
  3. For each entity bean, you can configure:
    Primary Key
    For each JPA entity bean, specify the primary key. The primary key uniquely identifies each record in a set of data.
    Relationships
    Add new relationships between JPA entities or delete relationships.
    Named Queries
    Add new queries, edit existing queries, or delete queries associated with a JPA entity. Named queries are used for querying and retrieving data from the database.
    Concurrency Control
    Specify the optimistic lock value for the entity. The optimistic lock value ensures that correct results for concurrent operations are generated.
    Other
    Set advanced options.
  4. After you configure the entity bean, click Finish.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tjpaconfigentity.html