Importing JPA entity beans into a project

Create a JPA enabled dynamic Web project.

To import a JPA entity bean:

  1. Right-click your Web project and select

    Import. The workbench Import wizard opens.

  2. Follow the instructions in the wizard to import the JPA entity beans. For more information on the workbench Import wizard, refer to Importing files.

  3. Once the entity beans are imported, expand

    JPA Content.

  4. Right-click

    persistence.xml and select

    Synchronize Classes. This ensures that all of the imported entity beans are added to the persistence.xml file.