Generating JSF Pages from Entity Classes

See Also

If you have already generated entity classes from a database in your project, you can use the JSF Pages from Entity Classes wizard to generate a collection of files, classes and front-end pages that enable you to interact with the database. The purpose of the wizard is to provide template code that facilitates CRUD functionality with a back-end data store.

To generate JSF pages from an entity class:

  1. Choose File > New (Ctrl-N) from the main menu.
  2. From the JavaServer Faces category, select JSF Pages from Entity Class and click Next. The wizard displays all of the entity classes in the project.
  3. Specify the entity classes for which you want to generate JSF pages. To do so, click Add (or Add All) to move entity classes to the Selected Entity Classes list.
  4. Click Next.
  5. In Step 3: Generate JSF Pages and Classes, specify a name for the following fields:
  6. Click Finish.

The IDE generates all files based on the names and locations you specified in the wizard. For each entity class, the wizard generates the following:

See Also
About JSF CRUD Applications
About Java Persistence
Generating Persistent Entity Classes from a Database
About JavaServer Faces Framework Support

Legal Notices