Skip to main content Skip to complementary content

Adding annotations to an element


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.


  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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!