title: MySQL Datetime <-> Java Date
body: <p>I use Hibernate and I have a datetime in my MySQL database.
  Now I want to store the date/time which is a java.util.Date into the database.</p>
  
  <p>So I can write:</p>
  
  <pre><code>SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  testObject.setCreationDate(df.parse("2010-06-06 13:20:15"));
  </code></pre>
  
  <p>But how can I set the current date/time? Because this is a data field which should store the creation datetime of this object/table row.</p>
  
  <p>Best Regards.</p>