HI All,
I want to query the data based on date using
between function
eg:
Code:
Select * FROM PROFILE_EVENT
WHERE TRUNC(EVENT_DATE_TIME) BETWEEN TO_DATE('02/21/2006','MM/dd/yyyy') AND TO_DATE('02/21/2006','MM/dd/yyyy')
when i execute this in oracle i am getting result.
when i execute this in hibernate i am getting no result.
hibernate generated query does not have trunc, to_date function.
Code:
Select * FROM PROFILE_EVENT
WHERE EVENT_DATE_TIME BETWEEN ? AND ?
how to query in hibernate??
thanks in advance
balag