On 1/23/2011 7:33 AM, Jeff Schwartz wrote:
You need to query on a 24 hour time range
Yes, and, of course, you have to decide on what 'day' you are looking for - the users' day, the
server's day, UTC, or some arbitrary spot on Earth. And then there's day light saving... its
surprising how difficult it can get to search for a date!
Alan
On Jan 22, 2011 10:48 PM, "javabuddy" <[email protected]
<mailto:[email protected]>> wrote:
> I have an entity which has Date field as one of the column. I have a
> query to extract the entites which match the date that I send in as
> parameter,
>
> Query:
> select o from Assignment o where o.assignmentDueDate = :date
>
> (Setting parameter)
> assignmentsDueForDay.setParameter("date", new Date(),
> TemporalType.DATE);
>
> BUT this doesnt yeild me any results, I confirmed the table has lot of
> entities for the date I am trying to extract.
>
> Please help.
>
> -Gana
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit"
group.
> To post to this group, send email to [email protected]
<mailto:[email protected]>.
> To unsubscribe from this group, send email to [email protected]
<mailto:google-web-toolkit%[email protected]>.
> For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Google
Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com
--
You received this message because you are subscribed to the Google Groups "Google
Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.