I have to desing a class, set of classes or Busine Object to represent a Hierarchical Organization Structure.
The Org. Struct of the company looks like the following:
- Root: Complex
- Deparments
- Divisions
The strucutre is stored in a very flat and simple table which has 3 fields:
- OrgCode,
- Short Name,
- Long Name.
Where OrgCode is a string of fixed char lenght, divided in virtual segments, where each segment represent the code and the level (Depth).
For example, the code:
OrgCode = 0100305
Is actuallay "01-003-05",
where 01 is Operations Complex, 003 is Finance Department, and 05 is Customer Payments Division.
I want to build a recursive strucutre using a Business Object to represent such Organization Hierarchy.
What is the best method to achieve this objective ? Any reocmmendations ?
Appreciate your help.< ...
Go to the complete details ...