cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: OT: O/R collection mapping [was: SQLTransformer]
Date Tue, 06 Sep 2005 12:34:18 GMT
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

Mime
View raw message