To follow up with this, it appears from my Hibernate parameter logging
that the time values are getting stripped from the date when a my date
is passed through to the HQL query.  My guess is that possibly the
Date object is being typed incorrectly to java.sql.date (which doesn't
maintain time info) instead of java.util.date however, I am not sure
how I would check this...

I realize that this is a pretty specific problem I am having, but I
wonder if anyone else out there has had problems passing Date objects
to HQL queries using LCDS.  I am also wondering if there is a way to
force the date type to be converted to a java.util.date or a timestamp.

Thanks for the help.

- Kevin


--- In [email protected], "Kevin" <[EMAIL PROTECTED]> wrote:
>
> I am having a problem where when I pass a Date object as a parameter
> in an HQL query (using the HibernateAssembler) it is stripped of it's
> time value?
> 
> Has anyone else run into this and if so can you offer suggestions on
> how to make sure Date get's converted to a proper timestamp value? 
> This seems to only be a problem when passing values to a query.  When
> I pass dates through using VO's the time values are maintained.
> 
> Thanks, Kevin
>


Reply via email to