cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessio Giovanni Baroni <alessiogiovanni.bar...@gmail.com>
Subject Problems with Date in Cayenne 2.0.4
Date Wed, 28 Jan 2009 14:48:47 GMT
Hi to all,
I have the following code:

.............
query = new SQLTemplate("SELECT FOO FROM BAR");
results = ctxt.performQuery(Bar.class, query);
for(int i = 0; i < results.size() - 1; ++i)
{
        Bar f = (Bar)results.get(i);
        ...... (f.getFoo());
        ....................
}

In the Oracle DB the field FOO is a DATE and I map it to java.util.Date.
When I do .getFoo(), the date that I have is without the
hours/minutes/seconds.
Why? How do I resolve it?

Thanks.

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