cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Problem: Ordering.orderList and date-values
Date Mon, 04 Dec 2006 13:07:58 GMT
java.lang.Comparable is used to order Date fields. "toString" is not  
involved anywhere on Cayenne end. Is there a chance you are  
converting the values to Strings yourself before doing the  
comparison? And what version of Cayenne is that?

Andrus


On Dec 4, 2006, at 1:52 PM, Juergen Saar wrote:

> Hi,
>
> if I use
>
> public static void *orderList*(java.util.List objects,
>                             java.util.List orderings)
>
>
> from the Ordering-Class for sorting date-values it behaves like a  
> toString()
> from the date-values is sorted and so it's a order-by-day and not a
> order-by-date.
>
> Is there anything I can do?
> --- Juergen ---


Mime
View raw message