0 Replies Latest reply on Jun 19, 2006 6:27 AM by liudan2005

    bug: Compare date only for a TIMESTAMP field?

    liudan2005

      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.