# Templates objects

### New objects

4 new objects have been added and are now usable in templates :&#x20;

* **$bundle** \
  the current bundle of templates<br>
* **$now**\
  provides the current system date and time in different formats<br>
* **$file**\
  allows to work with a file located on the filesystem, each file instance is created with $fn.file(..) or $fn.fileFromXxx(..)<br>
* **$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 :**&#x20;
  * fkParts&#x20;
  * hasDatabaseComment()&#x20;
  * hasInputType()&#x20;
  * hasLabel()&#x20;
  * hasTag(tagName)&#x20;
  * insertable&#x20;
  * insertableIs(value)&#x20;
  * isTransient()&#x20;
  * sqlType&#x20;
  * tagValue(tagName)&#x20;
  * updatable&#x20;
  * updatableIs(value)<br>
* **$entity :**&#x20;
  * isJoinEntity()&#x20;
  * linksCount<br>
* **$fn :**&#x20;
  * className(object)
  * file(filePath)&#x20;
  * fileFromBundle(filePath)&#x20;
  * fileFromModel(filePath)&#x20;
  * join(collection, separator)&#x20;
  * joinWithPrefixSuffix(collection, separator, prefix, suffix)&#x20;
  * replaceInList(list, oldElement, newElement)
  * toList(array)&#x20;
  * trimAll(list)<br>
* **$jpa :**&#x20;
  * genTargetEntity
  * joinColumnInsertable
  * joinColumnUpdatable&#x20;
  * linkAnnotations(leftMargin, link)
  * linkCardinalityAnnotation(leftMargin,link)&#x20;
  * linkJoinAnnotation(leftMargin, link)&#x20;
  * linkJoinAnnotation(leftMargin, link, alreadyMappedFields)&#x20;
  * manyToManyFetchType&#x20;
  * manyToOneFetchType&#x20;
  * oneToManyFetchType&#x20;
  * oneToOneFetchType<br>
* **$link :**&#x20;
  * entity&#x20;
  * hasMappedBy()&#x20;
  * insertable
  * insertableIs(boolean value)
  * isEmbedded()&#x20;
  * isTransient()&#x20;
  * updatable&#x20;
  * updatableIs(boolean value)<br>
* **$model :**&#x20;
  * description&#x20;
  * folderName&#x20;
  * name&#x20;
  * title&#x20;
  * type&#x20;
  * version<br>
* **$project :**
  * modelsFolderFullPath<br>
* **$target :**
  * originalFolderDefinition&#x20;
  * outputFileExists()&#x20;
  * outputFileFullPath&#x20;
  * type


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://news.telosys.org/version-3.3.0/templates-objects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
