About CRUD Applications

See Also

A Create, Read, Update, and Destroy (CRUD) application is a simple programming pattern that allows you to read and manage the data in a data source. The IDE provides automatic support for this common programming task by letting you quickly generate a CRUD application from an entity class.

The CRUD application is a web application that uses the JSF framework. An entity class is a class that uses the Java Persistence API to access data in a data source. You can generate a CRUD application from an entity class in a web application using the JSF Pages frorm Entity Class file template in the Persistence category of the New File wizard.

The IDE generates the following artifacts for a CRUD application:

An entity class is a class that uses the Java Persistence API to access a data source. In a web application project, you can generate a series of JSP pages that use the JSF framework and the entity classes to provide read and write access to the entries in the database. The JSP pages use JSF components.

To generate JSF pages from an entity class:

  1. Choose File > New File (Ctrl-N) from the main menu.
  2. From the Persistence category, select JSF Pages from Entity Class and click Next. The wizard displays all of the entity classes in the project.
  3. Add all of the entity classes for which you want to generate JSF pages to the Selected Entity Classes list and click Next.
  4. (Optional) Specify a folder in which to place the JSF pages.
  5. Specify a package name for the generated Java classes and click Finish.

The IDE generates the following artifacts for a CRUD application:

See Also
About Web Application Frameworks
Adding JSF Support to an Existing Application
Generating JSF Pages from an Entity Class
Creating an Entity Class
Generating Persistent Entity Classes from a Database

Legal Notices