Telosys version : 4.3.0
To define JavaScript as the target language call #set( $env.language = 'JavaScript' ) in the templates files.
The information below shows the behavior of the generator when 'JavaScript' is the current target language.
| Model type | Default | @UnsignedType | @NotNull | @PrimitiveType | @ObjectType |
|---|---|---|---|---|---|
| string | |||||
| byte | |||||
| short | |||||
| int | |||||
| long | |||||
| decimal | |||||
| float | |||||
| double | |||||
| boolean | |||||
| date | |||||
| time | |||||
| timetz | |||||
| datetime | |||||
| datetimetz | |||||
| timestamp | |||||
| uuid | |||||
| binary |
JavaScript is a dynamically-typed language, there are no types in the source code.
Hence the type conversion always return a void string.
| TRUE | true |
| FALSE | false |
| NULL | null |
| Model type | Language type | Language full type | Language literal value example |
|---|---|---|---|
| string | "AAA" | ||
| byte | 1 | ||
| short | 1 | ||
| int | 100 | ||
| long | 1000 | ||
| decimal | 10000.77 | ||
| float | 1000.5 | ||
| double | 1000.66 | ||
| boolean | true | ||
| date | Temporal.PlainDate.from('2001-06-22') | ||
| time | Temporal.PlainTime.from('01:46:52') | ||
| timetz | Temporal.PlainTime.from('01:46:52') | ||
| datetime | Temporal.PlainDateTime.from('2001-05-21T01:47:53') | ||
| datetimetz | Temporal.ZonedDateTime.from('2001-05-21T01:47:53+01:00') | ||
| timestamp | Temporal.PlainDateTime.from('2001-05-21T01:47:53') | ||
| uuid | 'c0624814-a0b3-4f3f-beb6-5ef850b1c783' | ||
| binary | null |