Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Conversion is not working I need help #12

Open
boo105 opened this issue Feb 9, 2024 · 1 comment
Open

Type Conversion is not working I need help #12

boo105 opened this issue Feb 9, 2024 · 1 comment

Comments

@boo105
Copy link

boo105 commented Feb 9, 2024

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

@l-gu
Copy link
Member

l-gu commented Feb 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants