Vadim Gritsenko wrote:
Leszek Gawron wrote:
- Marathon class:
- name
- place
- date
- thoseWhoFinishedTheRace collection which is a sorted list of those
Persons who managed to get to the finish line. The list is sorted in
an order of finishing so thoseWhoFinishedTheRace().get( 0 ) is the
winner.
In this example the collection is not _sorted_ - it is _ordered_ with
information not available to Person bean. The use of index field is
mandatory - it's not bad database design.
It is bad - good design will have 'finished' timestamp ;-P
LOL. Still there are several usecases when you do not have a field to
sort on like "a list of shirts I like best starting from the most
favourite one". :)
--
Leszek Gawron [EMAIL PROTECTED]
IT Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65