title: How to store date as Oracle SYSDATE with JpaRepository save method?
body: <p>I am working on a Spring Data JPA project, where I want to store Oracle <code>SYSDATE</code> in a date field of a table. I can not modify the table at all.</p>
  
  <p>Right now, what I am doing is passing <code>new Date()</code> to that date field. Which is not correct as the Oracle server is in a different timezone. </p>
  
  <p>I am not writing any query to insert the data, instead I am using <code>JpaRepository</code> <code>save()</code> method.</p>
  
  <p>How can I do this?</p>
  
  <p><strong>P.S.</strong> I do not want to hard code the timezone of the database server in my code.</p>