Service Development Help : Working with OData Services : Adding Associations to OData Elements
Adding Associations to OData Elements
You can specify an association to represent the relationship between two entity types (such as Customer and Order). Each association has two ends and each end of the association must specify the entity type attached to that end. Associations can be Single or Bidirectional depending on the number of entity types that can be at the end of the association.
To add associations
1. Open the OData service and select the entity type, external entity type, or complex type to which you want to add association.
2. In the Palette view of the OData editor, under Associations, select Single or Bidirectional and drag it to the Tree tab.
Note:  
If the Palette view is not visible, display it by clicking on the right side of the editor.
3. In the Entity Association dialog box, select the principal and dependent entity types for the ends of the association.
4. Click OK.
Designer creates the associations and displays the OData navigation elements under the corresponding entity types. In case of unidirectional association, a navigation element is added only to the specific entity type that is the association end. In case of bidirectional association, navigation elements are added to both entity types that are at the association ends.
5. Click File > Save to save the association.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback