-
Notifications
You must be signed in to change notification settings - Fork 4
MOGLiCC Tutorial
This tutorial gives you a first feeling about working with MOGLiCC. It will show you, how to generate a sql file consisting of a large number of different insert statements. It starts very simple, only using the VelocityModelBasedLineInserter and the StandardModelProvider. While building in more and more complexity, the tutorial will lead you into some typical error situations, but will also, of course, give guidance to manage the problems and to get along. Finally, the VelocityClassBasedFileMaker and the ExcelStandardModelProvider will be used in this SQL example, so that a broad functionality of MOGLiCC is covered by this tutorial. All in all an excellent way to become familiar with MOGLiCC and code generation.
[A) Setting up a new model and template: Generating the first lines of SQL commands] (https://github.com/iks-github/MOGLiCodeCreator/wiki/MOGLiCC-Tutorial-Part-A)
B1) Using attributes and metaInfos: Adding SQL table data
B2) Using attributes and metaInfos: Refining SQL table data
C) Applying the ClassBasedFileMaker: Separating class specific output
D) Clean Coding for both template and generation code: using subtemplates and white space
E) Applying the ExcelStandardModelProvider: Managing large amounts of data in varying format