Hi,

I have defined a relation between categories in order to create a category tree.
here is my problem/question
how to determine who is the parent en who is the child?


The relation is called "relation"
so lets say I have 2 categories called vader en kind en have a relation beween them

vader(100)->relation(102)->kind(100)

what is the right way to determine if vader is the parent node and kind is the child 
node?

To me it looks like this is defined in the relationNode so that
if (node.getNumber() == relation.getSource().getNumber()){
        node is parent node
}

of course it gets even worse if the source node is the destination node .. in that 
case the node is the parent and the child node.


Is this the right way?
for relations between nodes of different type i can't apply the same "trick"
or will relation.getSource() always be of type A and relation.getDestination() of node 
type B?

-- 
Kees Jongenburger
Mediapark C101 Hilversum  
+31 (0)35 6772910


Reply via email to