Importing JPA entity beans into a project
Create a JPA enabled dynamic Web project.
To import a JPA entity bean:
- Right-click your Web project and select
Import. The workbench Import wizard opens.
- Follow the instructions in the wizard to import the JPA entity beans. For more information on the workbench Import wizard, refer to Importing files.
- Once the entity beans are imported, expand
JPA Content.
- Right-click
persistence.xml and select
Synchronize Classes. This ensures that all of the imported entity beans are added to the persistence.xml file.