title: Map MySql datetime to hibernate
body: <p>I have a <code>datetime</code> field in my MySql database. A typical entry looks like this: <code>2015-08-26 11:45:48</code>. </p>
  
  <p>But by the time it reaches my app the hours, minutes and seconds are always <code>00:00:00</code>.</p>
  
  <p>This is the mapping entry: </p>
  
  <pre><code>&lt;property name="listingTime" column="listing_time"/&gt;         
  </code></pre>
  
  <p>The field in my <code>Java</code> class is </p>
  
  <pre><code>private java.sql.Timestamp startTime;
  </code></pre>
  
  <p>I tried setting various types for the <code>listingTime</code> property in my <code>hibernate.cfg.xml</code> but it doesn't change the all zeroes. What am I missing? </p>