Re: how does cayenne handle java.util.date values ?

2006-12-11 Thread Andrus Adamchik
Yeah, daylight saving time is tricky... Though the Date object still stores information about the timezone. I am surprised the driver doesn't account for it. Here is a few options that you have: 1. [the simplest] If you can redesign your database, I'd suggest storing dates as long numbers.

Re: how does cayenne handle java.util.date values ?

2006-12-05 Thread Tore Halset
On Dec 5, 2006, at 14:26 , Lothar Krenzien wrote: I've provided a simple demo class to show what I mean. I used Java 5, cayenne 2.1 and jtds with MS SQL Server 2000. Looks like the attachment are striped by the mail-list software. Could you copy/paste the code into the mail instead of

Re: how does cayenne handle java.util.date values ?

2006-12-05 Thread Andrus Adamchik
Attachments are stripped from the messages sent to the list, so I can't check your example. So let me ask you this - are you using Cayenne XMLEncoder/XMLDecoder? It won't handle the dates properly ... the rest of Cayenne will. If this doesn't help, could you please post a relevant code

Re: how does cayenne handle java.util.date values ?

2006-12-05 Thread Lothar Krenzien
-Ursprüngliche Nachricht- Von: cayenne-user@incubator.apache.org Gesendet: 05.12.06 14:33:50 An: cayenne-user@incubator.apache.org Betreff: Re: how does cayenne handle java.util.date values ? On Dec 5, 2006, at 14:26 , Lothar Krenzien wrote: I've provided a simple demo class