Hello Rei,
you need to model the hierarchy using an association valuation. This is the example from the online help for the valuation keyword:
businessobject
BusinessObject1 {
[AlternativeKey]
element
ID:ID;
node
ChildNode[0,n] {
element
ID:ID;
element
ParentID:ID;
association
Children [0,n] to
ChildNode valuation
(ParentID == ID);
}
}
The valuation keyword allows you to define an association with cardinality [0,n] on the ChildNode of BusinessObject1. The association Children is calculated by the system based on the condition on the ID and ParentID elements of ChildNode.
Regards
-- Reinhold