Can you suggest me “How can I represent the hierarchical relationship through java class?”
you are welcomed to suggest other techniques.
For instance, User specifies that
"Room" belongs-to "Floor" and "Floor" belongs-to "Center"
I want to represent this relationship as Java class, and later want to retrieve this relationship.
-Pankesh
What you’re talking about is standard object composition
‘Belongs-to’ and ‘contains’ are rather similar here. So for example: