title: @Temporal - DateFormat - JPA
body: <p>I am using below in my <strong>Customer</strong> entity to map <code>Date</code> field</p>
  
  <pre><code>@Temporal(TemporalType.DATE)
  @Column(name = "birthdate")
  @DateTimeFormat(pattern = "dd-MM-yyyy")
  private Date birthDate;
  </code></pre>
  
  <p>But still <code>BirthDate</code> is saved in <code>yyyy-MM-dd</code> format. I have tried setting in setter method for field <code>birthDate</code> using DateFormat, but still same response.</p>
  
  <p>Database is Mysql, column is of type <code>Date</code>.
  I wish to set the value in <code>dd-MM-yyyy</code> format.</p>