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

Vadim

Reply via email to