kkrikor wrote:
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelpHibernate version: 3.2
Mapping documents:A quick question about doing an hql search with date.
My hql query
Code:
from Test where test.date = ?
parameter = new Date("7/2/2007")
This is not returning the expected row. What am I doing wrong
try this syntax
String hql = "from Test t where t.date = :date";
query = hibernateSession.createQuery(hql);
query.setParameter("date", new Date("7/2/2007");