I have a date field defined as Temporal.TIMESTAMP. There seem to be a problem If I want to compare its date without check time. Here is my hql: em.createQuery("from A a where a.datetime=:date").setParameter("date",new Date(),Temporal.DATE);
This fails unless I define my date filed as Temporal.DATE.
I'm not sure whether this is a bug or i'm not using it correctly.