"gen" command
“gen” is the standard command commonly used to generate code in the scope of the current model and the current bundle of templates.
"gen" command syntax
> gen *|entities *|templates [-r] [-y]entities: a list of entities (part of the name) separated by a comma (,) or "*" for alltemplates: a list of templates (part of the name) separated by a comma (,) or "*" for all-r(optional) to copy the static resources provided by the bundle (if any)-y(optional) to force "yes" answer (to avoid confirmation)
"gen" command examples
> gen * *generates the code for all the entities of the current model with all the templates of the current bundle
> gen * * -rgenerates the code for all the entities of the current model with all the templates of the current bundle and copy the static resources provided by the bundle (if any)
> gen Driver *generates the code for only the entities having "Driver" in their name and for all the templates of the current bundle
generates the code for only the entities having "Car" or "Dri" in their name and for all the templates of the current bundle
generates the code for all the entities of the current model with only the templates having "dao" in their name
generates the code for only the entities having "Car" or "Dri" in their name and only the templates having "dao" or "controller" in their name
Last updated