You need to query on a 24 hour time range
On Jan 22, 2011 10:48 PM, "javabuddy" <[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].
> To unsubscribe from this group, send email to
[email protected]<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.

Reply via email to