To take advantage of this functionality, we need to create an EJB project ( File | New
Project , select Enterprise from the Categories list, then select EJB Module from the
Projects list), or use the EJB project from an Enterprise Application project, and add
some JPA entities to it, either by manually coding them or by generating them from
an existing schema as discussed in Chapter 6 .
Once we have some JPA entities in the project, we need to go to File | New , select
Persistence from the categories list, and Session Beans For Entity Classes from the
File Types list.