Hi,
I read several posts stating that it's normal to see how hibernate maps a DATE in the database to a java.sql.Date and then assigns it to a java.util.Date property in your domain object.
As you know, there are some issues in the implementation of the method .equals in both classes: java.util.Date.equals(java.sql.Date) but the opposite isn't true due to the nanoseconds issue.
So far, what can you do to make Hibernate map a DATE field to a java.util.Date instance ? I suppose that a problem so basic as this one must be already resolved, isn't it ? Or must we use Joda Time (
http://joda-time.sourceforge.net/contrib/hibernate/index.html) ?
Any comment about this would be really welcome.
Thanks in advance,
Juan[/url]