My datastructure itself doesn't need a resultOrder, so a Set is suitable.
But for showing new added items in a jTree I would need something like a List, because with a Set the whole tree gets mixed up after inserting new objects.
And it is more intuitive to see new added items at the begining or at the end of a tree.
So I would need a List without having a column for the list-order. The list-order should be dependent only of how the results where retrieved from the database.
Is there a way to get this with hibernate?
|