A codeGen Template is a directory with
The MDT template is for Cobol copybooks where every logical field consists of
2 logical fields:
So in the AAA-MDT is the flag indicates if the AAA is present or not
20 AAA-MDT PIC X(01). 20 AAA PIC X(03). 20 BBB-MDT PIC X(01). 20 BBB PIC X(03).
The Mdt Template generates a "field* for each logical field.
The above will generate
public IStringField getAAA() { ... } public IStringField getBBB() { ... }
One of the principles is to keep the Velocity Templates as simple as possible and move as much
code as possible into support classes.
The Support code is in the SupportJavaSource directory
Some important classes
if you download the standalone version of CodeGen
you can generate the skel using bat/shell script:
java -jar ../lib/JRecordCodeGen.jar ^ -TemplateDirectory CodeGenExample ^ -Template MdtTemplate ^ -Schema LKSA310I_Opp101_RequestFormat.cbl ^ -Package MdtTest.code ^ -outputDirectory MdtOut