Telosys objects
Telosys provides a set of predefined objects usable in the templates :
- Current model elements :
- $model (current model)
- $entity (entity defined in the model) [0:N / model]
- $attribute (attribute defined in an entity) [1:N / entity]
- $fkPart (part of foreign key, if attribute is involved in one or more FK)
- $link (link defined in an entity) [0:N / entity]
- $linkAttribute (attribute involved in link definition) [1:N / link]
- $fk (foreign key defined in an entity) [0:N / entity]
- $fkAttribute (attribute involved in FK definition) [1:N / fk]
- $reference (reference to other entity) [0:N / entity]
- Configuration :
- $env (environment configuration)
- $project (project configuration)
- Generation in progress :
- $target (current target)
- $bundle (current bundle)
- $generator (generator engine)
- Utility functions and tools :
- $fn (set of utility functions)
- $const (set of constants)
- $factory (a factory to create objects)
- $file (to use files located on the file system)
- $loader (to load your own utility classes)
- $now (current date and time)
- $values (literal values generator for attributes)
- $h2 (utility functions for H2 database)
- Utility functions for generating Java code :
- $java
- $jpa
- $jdbc
- $beanValidation
- Utility functions for generating SQL code :
- $sql
- Utility functions for generating HTML code :
- $html
- Deprecated objects (do not use, just for backward compatibility) :
- $jdbcFactory (use $factory instead)
- $today (use $now instead)
The documentation reference for each object is available here :
- Latest version :
- Previous version :
Last modified 6mo ago