Telosys doc
Website
News
Twitter
Linkedin
Search…
Telosys documentation
Telosys CLI
Telosys with Eclipse
Telosys with VSCode
Configuration & variables
Model (DSL model)
Model from database
Templates
Target languages
C++
C#
Golang
Java
JavaScript
PHP
Python
Scala
TypeScript
Support the project
How to contribute
Sponsors
Tooling
Powered By
GitBook
Scala
Scala
is supported since
version 3.3.0
To define
Scala
as the
target language
in a template file :
#set( $env.language = 'Scala' )
The information below shows the behavior of the generator when Scala is the current target language.
Types conversion
The table below describes how model neutral types are automatically converted to Scala types with potential impact due to attribute annotations.
Model type
Scala type
​
string
String
​
byte
Byte
​
short
Short
​
int
Int
​
long
Long
​
decimal
BigDecimal
​
float
Float
​
double
Double
​
boolean
Boolean
​
date
LocalDate
​
time
LocalTime
​
timestamp
LocalDateTime
​
binary
Array[Byte]
​
Annotations effects
@UnsignedType
: no effect
@ObjectType
: no effect
@NotNull
: no effect
@PrimitiveType
: no effect
Previous
Python
Next
TypeScript
Last modified
1yr ago
Copy link
Outline
Types conversion
Annotations effects