Create a Many-To-One or One-To-One Relationship
You can create a many-to-one or one-to-one relationship from a business object's Overview tab. Here are examples of a many-to-one (or one-to-many) and a one-to-one relationship:
- A many-to-one relationship between the Employee and Department business objects means a department can have many employees but each employee can only work for one department.
- A one-to-one relationship between the Employee and EmployeePII objects means that each employee has one set of sensitive personally identifying information and that information belongs to only one employee.
To create a many-to-one or a one-to-one relationship:
For referenced business objects, the relationship between the current business object and the one being referenced is, by default, many-to-one. When you create a reference from, say, an Employee business object to a Department business object, an Employee can belong to only one Department, but a Department normally has many employees. Such a relationship is first shown as a dotted line for the object that represents the "one" side. When you click the line, the details from the "many" business object are loaded and the relationship is shown:
Description of the illustration bo-relships.png
The referenced business object, Department, also appears in the Endpoints tab for the Employee business object.