cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: Quick question about Date and Time database types
Date Tue, 07 Jun 2011 13:29:47 GMT
Hi Tony,

I think you may want a Timestamp instead.

mrg


On Mon, Jun 6, 2011 at 7:01 PM, Tony Dahbura <dahbuan@aopslab.com> wrote:

> I have a mysql database we are using with Cayenne...The column type in
> mysql is datetime.
>
> When accessing the returned objects in Cayenne they all have the time set
> to 00:00:00 but the date is valid. The mysql database has the time and date
> correct.
>
> The java date object is able to handle the time...
>
> Not sure what Cayenne is doing to the time portion of the date?
>
> It is a straight query against the database to return a list of objects....
>
> Thanks,
> Tony
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message