Open full view…

Using model name inside teplates.cfg

Wed, 17 May 2023 02:12:58 GMT

Hi, is there a way I can use the model name to define were the generated file will be located? I have several model with several entities and I want to do something like this: ${SRC}/${ROOT_PKG}/dto/${}/${BEANNAME_LC} ... But the generated file is inside a literal ${} folder, thank you in advance.

Telosys Team
Wed, 24 May 2023 17:34:26 GMT

The model name is not exposed as a variable, so you can't use it directly. But you can define a project level variable (for example MODEL_NAME=xxx) in telosys-tools.cfg and use it in templates.cfg