# DSL model annotations

### New annotations

* Explicit **Foreign Key** with&#x20;
  * **@FK(**&#x78;&#x78;**)**
* **@Insertable(**&#x74;rue|fals&#x65;**)** &#x20;
* **@Updatable(**&#x74;rue|fals&#x65;**)**
* **@Optional**
* **@Transient**

### New annotations for links&#x20;

* Link **fetch type** :
  * **@FetchTypeLazy**&#x20;
  * **@FetchTypeEager**<br>
* Link by **attribute** with
  * **@LinkByAttr(**&#x61;ttribNam&#x65;**)**&#x20;
  * **@LinkByAttr(**&#x61;ttr1 > refAttr1 ,  attr2 > refAttr2 , ...**)**<br>
* Link by **column** with
  * **@LinkByCol(**&#x63;olumn\[, column2 \[, columnN ] ] **)**<br>
* Link by **Foreign Key** :
  * **@LinkByFK(**&#x66;kNam&#x65;**)**<br>
* Link by "**join entity**" (for "many to many" cardinality)
  * **@LinkByJoinEntity(**&#x65;ntityNam&#x65;**)**<br>
* Link **cardinality** :
  * **@ManyToMany**&#x20;
  * **@OneToOne**<br>
* Link "mapped by" (for ORM) :
  * **@MappedBy(**&#x61;ttributeNam&#x65;**)**

### Annotation removed

The useless annotation "**@SqlType**" has been removed


---

# 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/dsl-model-annotations.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.
