title: IllegalArgumentException: Can not set java.time.LocalDateTime field to java.sql.Timestamp
body: <p>I am doing test task for a self-teaching. 
  My stack is Spring Boot/H2 date base/Hibernate</p>
  
  <p>I have like a REST-full service (actually it is not, now I am trying to fix it) </p>
  
  <p>I've been told that I have a lot of bad code decisions and mistakes, so I've decide to fix it. 
  Initial state of a working project is there - <a href="https://github.com/iliapastushenko/testtaskREST" rel="nofollow noreferrer">https://github.com/iliapastushenko/testtaskREST</a></p>
  
  <p>I've started to refactor that and first thing that I've made - got rid of 
  jackson-datatype-jsr310 because it is actually redundant thing for me - I've deleted it from POM and ClientappApplication class and edited my Application class field "dateCreated":</p>
  
  <pre><code>@DateTimeFormat(pattern = "dd-MM-yyyy hh:mm:ss")
  @Type(type="timestamp")
  private LocalDateTime dateCreated;
  </code></pre>
  
  <p>So, when I am trying to get one application of needed client via frontend 
  I get this type of Exception:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Can not set java.time.LocalDateTime 
  field root.Model.Application.dateCreated to java.sql.Timestamp
  </code></pre>
  
  <p>Could you please give me a hint - what is wrong ? </p>