I've seen this page many times, and the way I read it, if you are using SQL type TIMESTAMP, you can map it to either java.util.Date or java.util.Calendar. I was using Date.
In any case, since my db types are constrained, but I could easily change the class it maps to, and the class is in a "db mapping layer", I simply mapped it to java.sql.Timestamp, which ended up working fine.
On the other hand, along the way I also discovered a coding issue I had in how I was referencing the mapped objects, which I fixed. It's possible I could go back to java.util.Date with no problem.
|