I am experiencing some differences between version 2.1 and 3.0A data mapped fields. It seems that my mapping, although defined as java.util.Date, returns java.sql.Timestamp. The Java2 API suggests that Date and Timestamp objects should never be compared. So, two questions,
1. Will Hibernate 3.0 now return java.sql.Timestamps for properties mapped as Date
2. What is the best practice when dealing with returned java.sql.Timestamps when it is necessary to compare dates in the applications layer.
Thanks!
Hibernate version: 3.0A[\b]
[b]Mapping documents:[\b]
<property name="effectiveDate" type="java.util.Date" update="true" insert="true" access="field" column="EFFECTIVE_DATE" />
[b]Name and version of the database you are using:
Oracle9i Enterprise Edition Release 9.2.0.5.0
|