code generation - How to generate one folder per model under the same source root with Telosys? - Stack Overflow

admin2025-04-15  4

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.

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.

Share Improve this question asked Feb 4 at 9:23 jglatrejglatre 9531 gold badge12 silver badges17 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

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

转载请注明原文地址:http://www.anycun.com/QandA/1744730800a86821.html