Hi,
I use java.util.Date for one property in my bean, I also set up "date" type in property in my mapping file. When I insert a row into db table, then load it
by using its auto-generated id, I found the inserted date column value and the retrieved date column value are different. This is the reason why they are not equal when I compare them using equals() method. If I remove Date from my bean and mapping file, and use other types, there will be no problem.
I am wondering how you guys handle this problem with Date type?
regards,
|