Search code examples
code-generationtelosys

How to generate one folder per model under the same source root with Telosys?


I'm trying to migrate a homegrown template engine to Telosys, but an important feature that I miss in Telosys is the ability to organize entity classes in subpackages under the same project (main target language is java). Is it possible? I think it would be just to put something like ${model.name} in the third column of templates.cfg, but it doesn't work.


Solution

  • It's possible since Telosys ver 4.2.0 (see https://news.telosys.org/version-4.2.0 )
    You can use the variable ${MOD} for current model name
    You can also use “_UC” or “_LC” suffix for upper/lower case