Generating JSF Pages

Before generation, make sure that you have attached the Hibernate Extension file to the model, and checked the model for errors.

  1. Select Language > Generate Java Code to open the Generation dialog.
  2. Enter a directory in which to generate the files, and specify whether you want to perform a model check (see Checking an OOM).
  3. Define generation options.
  4. Click OK to begin generation.

    The generation produces the following files:

    • Persistent files (persistent classes, DAO, ...)

    • Eclipse and Eclipse WTP project artifacts

    • A home page

    • JSF pages for persistent classes:
      • A find page for searching objects

      • A list page for displaying find results

      • A create page for creating new objects

      • An edit page for updating objects

    • Managed beans

    • Page flows (face configuration files)