View Article

Add a One to One Relationship to an Entity

By Xelence Documentation posted 06-04-2021 11:29

  

Introduction

This process allows an individual item to have a relationship with one other individual item. For example, every order can have only one customer, which is a one to one relationship.

Prerequisites

You must have an existing entity and another entity that is unmapped.

 Quick Steps
1 Search for and open the entity
2 Open the Attributes section
3 Open the One To One section, then add a new relationship
4 Enter the details, then click OK
5 Save the entity

Detailed Steps

Step 1. Search for and open the entity.


Step 2. Open the Attributes section.



Step 3. Open the One To One section, then add a new relationship.

This is where the entity manages its one to one relationships. Click the + icon to add a relationship.



Step 4. Enter the details, then click OK.

Important properties are:

  • Entity Name: The entity you are configuring has a one to one relationship with.
  • ID: Programmatic ID of the relationship.
  • Description: You can also add a description if your entity requires any explanation.
  • Access Modifier: Determines the entity that can access this relationship.
Access Modifier options are:

Public: Any entity can access this relationship.
Private: Only this entity can access this relationship.
Protected: Only this entity and any child entity can access this relationship.
The one to one relationship is successfully added.



Step 5. Save the entity.

Click the icon to save your entity file.



What are the improvements over S3 Version 6?

The process is identical.


Related Articles

Add a One to Many Relationship to an Entity

Add a Property to the Entity


This post is part of the Entity topic. Click here to open the Entity Overview.


#Xelence
#Entity

0 comments
106 views