Telosys news
Website
Documentation
Twitter
Linkedin
Search…
Telosys news
Version 3.3.0 (2021-July )
DSL model annotations
DSL model "Tags"
Templates features
Templates objects
Version 4.0.0 (2022-April)
Powered By
GitBook
Templates objects
New objects
4 new objects have been added and are now usable in templates :
$bundle
the current bundle of templates
$now
provides the current system date and time in different formats
$file
allows to work with a file located on the filesystem, each file instance is created with $fn.file(..) or $fn.fileFromXxx(..)
$fkPart
a Foreign Key element (got from an attribute involved in 1 or more Foreign Keys)
For more information see "
Telosys objects reference
" documentation.
Objects improvement
Many objects have been improved with new attributes and new methods added.
$attribute :
fkParts
hasDatabaseComment()
hasInputType()
hasLabel()
hasTag(tagName)
insertable
insertableIs(value)
isTransient()
sqlType
tagValue(tagName)
updatable
updatableIs(value)
$entity :
isJoinEntity()
linksCount
$fn :
className(object)
file(filePath)
fileFromBundle(filePath)
fileFromModel(filePath)
join(collection, separator)
joinWithPrefixSuffix(collection, separator, prefix, suffix)
replaceInList(list, oldElement, newElement)
toList(array)
trimAll(list)
$jpa :
genTargetEntity
joinColumnInsertable
joinColumnUpdatable
linkAnnotations(leftMargin, link)
linkCardinalityAnnotation(leftMargin,link)
linkJoinAnnotation(leftMargin, link)
linkJoinAnnotation(leftMargin, link, alreadyMappedFields)
manyToManyFetchType
manyToOneFetchType
oneToManyFetchType
oneToOneFetchType
$link :
entity
hasMappedBy()
insertable
insertableIs(boolean value)
isEmbedded()
isTransient()
updatable
updatableIs(boolean value)
$model :
description
folderName
name
title
type
version
$project :
modelsFolderFullPath
$target :
originalFolderDefinition
outputFileExists()
outputFileFullPath
type
Previous
Templates features
Next
Version 4.0.0 (2022-April)
Last modified
1yr ago
Copy link
Outline
New objects
Objects improvement