Generating the application
Once you have finished adding/editing/deleting the entities in your application, you can then proceed to application generation.
Application generation is started by choosing the menu File > Generate Application, or using the
button on the toolbar.
Generating an application with JAG is a one step process, however before generation can take place JAG will validate the application
file that you have made.
Here is an overview of the various validations that are performed:
- Required fields must be filled in: e.g. the application name, the root package and the datasource URL.
- Dead entity references removed: e.g. if an entity was added to a service and subsequently deleted from the application.
- Entity bean primary key integrity checks.
- Duplicate field/relation names.
- Relations - Service integrity checks: if an entity containing relations is added to a service, then the related entity(-ies)
must also appear in a service. (This is because the FastLaneReader J2EE pattern used by the generated application requires value objects
that can reference their related entity fields through a service façade).
Once the validations have succeeded, you will be prompted to choose an output directory where the application files will be generated.
The application will be created within the selected directory, in a directory with the same name as the application.
<<Start page