Before generation, make sure that you have attached the Hibernate Extension file to the model, and checked the model for errors.
- Select to open the Generation dialog.
- Enter a directory in which to generate the files, and specify
whether you want to perform a model check (see Checking an OOM).
- Define generation options.
- 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)