Adding annotations to an element - Cloud - 8.0

Talend Studio User Guide

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-29
Available in...

Data Fabric

MDM Platform

About this task

For an element in a business entity, you can add annotations to the element to define the language specific labels, multilingual descriptions, multilingual facet error messages, and the format according to which you want to display/insert, in a specific language, dates or numbers in master data records in Talend MDM Web UI.

Additionally, you can add annotations to elements to define authorization of roles regarding web interface access to attributes. For more information, see Defining access control at the element level (access control annotation).

The following example shows how to set the display format of the element StartDate in the entity Agent.

Procedure

  1. In the Data Model Entities area, click the element StartDate in the entity Agent.
  2. In the Properties view, click the Presentation tab.
  3. Select the Display Format tab.
  4. From the language list, select the language for which you want to define the date format, and then enter the syntax for the date format according to the java.util.Formatter class.
    You must use a syntax based on the java.util.Formatter class to define the display of dates and numbers in a specific language. For further information about this class, see Oracle documentation.
    In this example, set %tc for the English language and %1$td/%1$tm/%1$ty for the French language.
  5. Click the [+] button to add the display format.
  6. Press Ctrl+S to save your changes.