Skip to main content Skip to complementary content

Defining foreign keys to link entities in a data model

Last updated: 9/1/2026
The following procedure shows how to define foreign keys to link entities created in Creating business entities in the data model in the Movie data model.

Procedure

  1. In the Data Model Entities panel, right-click the element you want to set as a foreign key and select Set the Foreign Key from the contextual menu.
  2. Click the [...] button to open the Select Xpath dialog box.
  3. Browse to the Director attribute Id and then click Add in the bottom of the dialog box.
  4. Click OK to finish setting the foreign key.
  5. Follow the same steps to set the Movie attribute in the Customer entity as a foreign key which points to the Movie entity.

Results

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 – please let us know!