Circular referencing in Domain Model with same entity
Hello All, Condition: I am doing a circular referencing for an entity in a domain model. for example, person “A” is saved in the entity with attribute Name “A” and role as “Manager”. Person “B” is saved in the same entity with attribute Name “B” and role as “Engineer”. here we want to create a parent child relation ship based on role and get the employee name. here a manager can have multiple employees reporting to him. Output expectation/requirement : we need to list the employees (using search), select multiple employees and assign them to a manager. Note: we are having a single entity to store employee details. By creating a circular reference on same entity, would it be a best option to retain the require details.
Venkat Narayana Rao Chenna
Indeed possible to do using a self reference.
Take a look at this learning path, which will help you to understand how self-references work and how to query them.