Skip to main content Skip to complementary content

Creating business entities in the data model

The following procedure shows how to populate the Movie data model created in Setting up a data model with some business entities.

Procedure

  1. In the editor, right-click anywhere in the Data Model Entities panel, and then click New Entity.
  2. In the New Entity dialog box that opens, enter a name for your new entity in the Name field, Movie in this example.
  3. Select the Complex Type option.

    You use the Simple Type option if you want to define a single element type such as a phone number or an email address, and the Complex Type option if you want to define a more complete structure, such as an address or, in this case, the different attributes that describe a movie.

  4. Leave the other options unchanged and click OK to add your new entity to the editor.

    Each time you create a new business entity, a default Primary Key record, which takes its name from the entity name with the suffix Id, and a Unique Key record which has the same name as the Entity are automatically created. For example, if you create a new business entity and name it Agency, the Primary Key record AgencyId will be created automatically.

  5. Follow the same steps to create a new entity Director.

    The new entity Director is listed in the Data Model Entities panel with a by default attribute DirectorId.

  6. Follow the same steps to create a new entity Customer.

    The new entity Customer is listed in the Data Model Entities panel with a by default attribute CustomerId.

Results

Now three entities Movie, Director and Customer are added to the data model Movie.

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!