Package redora.generator

Code generator functions and the Maven plugin

See:
          Description

Class Summary
FileLocations Some rigid and static locations of several files and directories.
GenerateMojo Generates persistence sources and resources.
GeneratorTemplate The generator uses a bean-counterish template file located in /target/generated-resources/templates.xml (look it up in the sources).
Internationalizer Fixes the caption elements on model and attributes.
ModelFileFinder Finds model files.
ModelProcessor Retrieves all available models from the file system in this project and generated all the sources and resources with the available templates.
Normalizer There are default settings for a model that, because they are default, are not available in the model file.
Template Archetype Template without content.
XMLUtil XML utilities in specific use for handling the model files.
 

Enum Summary
Template.Destination  
Template.DestinationType File type of the destination.
Template.Input Data input for the template.
Template.Type  
 

Exception Summary
ModelGenerationException Occurs when it generates.
 

Package redora.generator Description

Code generator functions and the Maven plugin

Have a look at Getting started wiki on Google Code how to use the Maven plugin.
The generator uses Freemarker and XSLT templates to generate the source code. The ModelProcessor organizes the code generation and it uses the GeneratorTemplate to see what source files it has to create. The template files are retrieved by ModelFileFinder. You can change the generated code by adding your own template.
You can also add templates for new functionality, for example when you want to create a jQuery Javascript client. In that case you must change the templates.xml file. This file is handled by GeneratorTemplate.



Copyright © 2012 Nanjing RedOrange Co. ltd. All Rights Reserved.