title: Timestamp in Hibernate
body: <p>I'm quite fresh in Hibernate, I just have run my first project with Hibernate.</p>
  <p>But I want to insert some data in my Postgres DB, one of the column is <code>operationtime TIMESTAMP WITH TIME ZONE</code> , while I was doing this with Postgres I was using <code>current_timestamp(0)</code> to insert date. Wondering how to proceed in hibernate in order to insert date. How to do the map in my map XML file.</p>
  <p>For example:</p>
  <pre><code>  &lt;property name=&quot;time&quot; type=&quot;java.util.Date&quot;&gt;
      &lt;column name=&quot;operationtime&quot;/&gt;
    &lt;/property&gt;
  </code></pre>
  <p>I did some research but I wasn't able to find what I want, probably I'm missing something regarding date types in Hibernate. Any advice is welcome.</p>