Circular referencing in Domain Model with same entity

0
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.
asked
2 answers
2

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.

https://academy.mendix.com/link/module/373/lecture/3033/6.1-Introduction

answered
0

Hello Venkat Narayana Rao Chenna!

Yes. With the information you specify, this would be a good option.

answered