title: How to save LocalDate to Postgres with Payara Micro
body: <p>I am getting the below error when I try to persist a LocalDate column. The error only occurs when the field is null. The publish_date column is of type Date in the database.</p>
  
  <p>I check <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=535431" rel="nofollow noreferrer">Bug 535431</a> and <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=546312" rel="nofollow noreferrer">Bug 546312</a> and apparently the issue is supposed to have been resolved with version 2.7.6 but it is still occurring.</p>
  
  <p>Error:</p>
  
  <pre><code>Caused by: org.postgresql.util.PSQLException: ERROR: column "publish_date" is of type date but expression is of type character varying
  </code></pre>
  
  <p>Entity:</p>
  
  <pre><code>@Entity
  @Table(name = "book")
  public class Book {
  
      @Id
      @Column(name = "id")
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
  
      @Column(name = "publish_date")
      private LocalDate publishDate;
      ...
  </code></pre>