title: How to generate a @CreatedDate LocalDateTime as Timestamp?
body: <p>I'm using <code>spring-jpa</code> to persist a <code>LocalDateTime created_at</code> with <code>@CreatedDate</code>.</p>
  
  <pre><code>@CreatedDate
  private LocalDateTime created_at;
  </code></pre>
  
  <p>Problem: this auto-generates a column with <code>datetime(6)</code> <code>mysql</code> column type.</p>
  
  <p>Question: how can I change this to <code>TIMESTAMP</code> type? I tried <code>@Temporal(TIMESTAMP)</code> but which is not allowed on <code>LocalDateTime</code>.</p>
  
  <p>Is it possible at all?</p>