title: How to convert Oracle Date format to Java?
body: <p>I have an Oracle Date type stored in the db in this format <code>06-MAR-20</code>, when i mapped it to a java domain class i had a property of type</p>
  
  <pre><code>java.SQL.Date
  </code></pre>
  
  <p>but i got the data in this format </p>
  
  <pre><code>2020-03-06
  </code></pre>
  
  <p>How can i stick to the exact same format from whats stored in my db?
  Will </p>
  
  <pre><code>java.SQL.Timestamp
  </code></pre>
  
  <p>keep it the same?</p>
  
  <p>Or do i need to do some configuration when getting the data from query to maintain its format?</p>