telosys-tools-generator icon indicating copy to clipboard operation
telosys-tools-generator copied to clipboard

Type Conversion is not working I need help

Open boo105 opened this issue 1 year ago • 1 comments

I tried to generate code with Telosys CLI here's my settings

  • TelosysTools/oracle.properties

oracle.properties content

conv.tableName  = ANACONDA_CASE
conv.columnName = snake_case
conv.pkName = PascalCase
conv.fkName = camelCase

type.long= NUMBER

And in my template files(.vm)

#set ( $env.databaseConvFile = $fn.file('TelosysTools/oracle.properties') )

but..... It's not wokring I follow Telosys Documentation plz give me more example or solution

boo105 avatar Feb 09 '24 08:02 boo105

I suppose you get an error like " Cannot get config value for key 'type.xxxx'" It's because when you define a new set of conversion rules you must redefine all the conversion rules for all the neutral types used in your entities As in the example : https://doc.telosys.org/target-databases-sql/specific-rules

So you must add a rule for each type : type.string, type.int, type.short, etc

l-gu avatar Feb 09 '24 14:02 l-gu