Menu

Code-Generation

Harry Gardner

The DAL4j distribution's bin directory contains a script that can be used on a unix or windows command line to kick off the code generation process. The script is also included in the bin directory for each sample project. The script is: classgen.sh or classgen.bat

To generate code:
Unix/Cygwin: classgen.sh <yourConfigFile.xml>
DOS: classgen <yourConfigFile.xml>

Note, the syntax above will generate code for all tables configured in yourConfigFilx.xml. To generate code for a single table or view, use the following command line options:

# To genreate code for a single table.
classgen -t <tableName> <yourConfigFile.xml>

# To generate code for a single view. 
classgen -v <viewName> <yourConfigFile.xml>

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.