Adding attributes to the business entity - Cloud - 7.3

Talend Studio User Guide

Version
Cloud
7.3
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-13
Available in...

Data Fabric

MDM Platform

Before you begin

You have already created business entities in the data model.

About this task

To add attributes to the business entity, do the following:

Procedure

  1. Expand the business entity you created and the group type in succession, and right-click the by-default element then select Edit Element from the contextual menu.

    A dialog box pops up.

  2. Change the name to Id then click OK to close the dialog box.
  3. Right-click Id, select Add Element (after) from the contextual menu, and then select Add string Element.

    A dialog box pops up.

  4. Enter a name and a minimum and maximum number of occurrences for the new attribute in the corresponding fields.
    Note: Talend Studio supports the definition of multi-occurrence attributes. You can set the Maximum Occurrence value to a specific number or leave it blank, which means the maximum number of occurrences is not bounded: in this case, the cardinality will be [1..many] or [0..many].
  5. Click OK to validate your changes and close the dialog box.
  6. Follow the same steps to create as many attributes as needed in the business entity.

    All attributes you create are listed under the business entity in the Data Model Entities panel, and all complex types are listed in the Data Model Types panel.

    Note: The data model editor includes a Properties view that displays all the properties of the selected entity/attribute in the data model. You can use this detail view to edit dynamically any of the entity or attribute listed in the data model.
  7. If required, right-click any of the listed element and select Edit element to open a dialog box where you can change the parameters for the selected element.

What to do next

In the data model editor, you can click the Schema Source tab to switch to the XML schema source of the data model, or click the Design tab to switch to the graphical view of the data model.

For more information, see Working with the schema source of a data model and Browsing the graphical view of a data model .

After defining business entities and attributes in your data model, you must set annotations to these entities or attributes regarding access control, display issues, role authorization, foreign keys, etc. For details, see the following sections.