Hello All,
I am new to Hibernate.
I have created a hibernate mapping xml
which contains an entry as follows:
Code:
<property name="fileProcessDate" type="java.util.Date" update="false" insert="false" column="FILE_PROCESS_DT" />
When I create a SearchCriteria to search on a particular date, I need to make the search only on the date part, and not on the timestamp.
But the above mapping tries to compare the time part as well hence resulting in incorrect results.
I want to implement something like this using O/R mapping.
Code:
WHERE TRUNC(FILE_PROCESS_DT) = TRUNC(date_provided_searchcriteria)
Can somebody please help me out ??
TIA.
~Nikunj.