Mubeena wrote:
Does this mean that
1 . I can use List only in situation where the child collection index strictly
starts from 0 to n
as per the List semantic.
Mubeena wrote:
2 . I should have a seperate column in the child table which holds the index.
yes
Mubeena wrote:
If the answer to the above questions is "YES", then I feel that hibernate forces me to have a index column in all my child tables which should not be the case.
It sounds like you didn't want List semantic.
Mubeena wrote:
It would be highly appreciated if someone could give an answer to the problem and also explain the different scenarios when it is most effiicient to use List , Set, Map and Bag. I am clear with the basics of List , Set , Bag and Map.
The refence doc talks about that in several places (search map, list etc...), have a special look at chapter 13.