I had a elements hierarchy above structure.
In this hierarchy of the elements insert into the my db like below image.
- In this table elements are having separate elementid and label of the element.
- Connectors will connect the two elements and that's having the separate id and start point is source and end point is target.
- The source and target points are having the elementid which is connected to start and end point.
I will get the data from the above mentioned table and inserted into the elementmapping table. As like below mentioned table.
Note: The hierarchy of the elements level dynamically increasing at any level.
Thanks in advance.