A CRUD (Create, Read, Update, and Delete) application is a simple programming pattern that allows you to read and manage the data in a data source. The IDE provides support for this common programming task by letting you quickly generate code for CRUD functionality based on entity classes in your project.
A JSF 2.0 application that implements CRUD functionality typically contains the following artifacts.
You can use the JSF Pages from Entity Classes wizard to generate the above artifacts for your application, based on entity classes contained in the project. See Generating JSF Pages from Entity Classes for more details.
If your project does not use JSF, you can use the JPA Controller Classes from Entity Classes wizard to generate CRUD controller classes based on the entity classes in the project. A JPA controller class is a wrapper for an entity class that provides clients with access to the database through the methods in the entity class. The JPA controller class contains the logic for creating, editing and destroying an entry in the data source, getting all of the entries in the data source, and getting a specific entry in the data source.