Quote:
Thats where I get confused... if a Set is unordered then why does it have a Sort attribute on the xml tag to sort the items?
I'll turn it around - why don't ordered/sorted sets have an indexer? I'd say it's because they still only implement ISet (there is no IOrderedSet), and so they can't have one.
Quote:
Why is a bag, which is unordered, represented by a IList which is ordered?
Because there is no bag collection neither in Java nor in .NET, so a list has to be used.
Quote:
Why can't I have a sort tag on a bag?
I don't know, I guess there's no technical reason why not, so if you want it, request it.
Quote:
I agree with mteper... the whole set thing is just bizarre. But I would go farther. I say, ditch the whole Iesi ISet thing and lets just use IList for everything. Just let the hbm tag - bag or list - determine if order is important or not.
I don't see the point in removing ISet. Why all that destruction? :-) If you are missing some feature, why not just add it?