title: How to use the Java 8 LocalDateTime with JPA and Hibernate
body: <p>I have the following  class description snippet:  </p>
  
  <pre><code>... 
  @Column(name = "invalidate_token_date")
  @Temporal(TemporalType.TIMESTAMP)
  private LocalDateTime invalidateTokenDate;
  ....
  </code></pre>
  
  <p>This code doesn't work on Hibernate 4 because <code>@Temporal</code> doesn't support <code>LocalDateTime.</code> </p>
  
  <p>I saw the suggestion on how to use <em>LocalDateTime</em> from <em>Joda-Time</em> but I use Java 8.</p>