Hi all,
I've the following code:
Query query = dbSession.createQuery("from Job as job where job.dateCollected >= :dateStart");
query.setTimestamp("dateStart", DateTimeUtil.parse((String) request.getParameter("dateStart")).toDate());
It works fine if the dateCollected field is a Date Object in my Job class
Due to unforseen stuff, dateCollected has to be changed to a String Object.
How should i change the query?
The dateStart parameter is gotten from a text field in ddMMyyyy format (eg:15092005).
Thanks.
|