One very nice feature of NetBeans is that it allows us to generate JSF applications that will perform create, read, update, and delete (CRUD) operations from existing JPA entities. This feature, combined with the ability to create JPA entities from an existing database schema, as described in the previous section, allows us to write web applications that interact with a database in record time.
To generate JSF pages from existing JPA entities, we need to right-click on the project and select New | JSF Pages from Entity Classes....
Note
In order for us generate JSF pages from existing JPA entities, the current project must be a Web application project.
At this point we are presented with the New JSF Pages from Entity Classes wizard.
We need to select one or more JPA entities. We would typically want to select all of them. They can easily be selected by clicking on the Add All>> button.
The next page in the wizard allows us to specify a package...