title: Hibernate mapping MySQL DateTime
body: <p>I've a table in a mysql db with the following schema:
  [ID, Value, Date] where ID and Value are int field and Date is a TIMESTAMP. 
  I defined a Java class like this:</p>
  
  <pre><code>class myClass{
    private int ID;
    private int value;
    private java.sql.Timestamp date;
  }
  </code></pre>
  
  <p>If I try to read records from the db using the map that I defined for Hibernate everything looks good, anyway if I create a new object and I try to insert it in my db I get errors.
  I read a lot of post about this but I'm really confused. </p>