title: Parameter value [2018-04-08T11:02:44] did not match expected type [java.util.Date (n/a)]
body: <p>I want to send this XML to rest api server:</p>
  
  <p>XML Request:</p>
  
  <pre><code>&lt;reconcile&gt;
    &lt;start_date&gt;2018-04-08T11:02:44&lt;/start_date&gt;
    &lt;end_date&gt;2018-04-08T11:02:44&lt;/end_date&gt;
    &lt;page&gt;1&lt;/page&gt;
  &lt;/reconcile&gt;
  </code></pre>
  
  <p>JAXB code:</p>
  
  <pre><code>@XmlRootElement(name = "reconcile")
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Reconcile {
  
      @XmlElement(name = "start_date")
      @XmlJavaTypeAdapter(LocalDateTimeXmlAdapter.class)
      public LocalDateTime start_date;
      @XmlElement(name = "end_date")
      @XmlJavaTypeAdapter(LocalDateTimeXmlAdapter.class)
      public LocalDateTime end_date;
      @XmlElement(name = "page")
      public String page;
  </code></pre>
  
  <p>SQL query:</p>
  
  <pre><code>public List&lt;PaymentTransactions&gt; transactionsByDate(LocalDateTime start_date, LocalDateTime end_date) throws Exception {
  
          String hql = "select e from " + PaymentTransactions.class.getName() + " e where e.created_at &gt;= ? and e.created_at &lt;= ?";
          Query query = entityManager.createQuery(hql).setParameter(0, start_date).setParameter(1, end_date));
          List&lt;PaymentTransactions&gt; paymentTransactions = (List&lt;PaymentTransactions&gt;) query.getResultList();
          return paymentTransactions;
      }
  </code></pre>
  
  <p>But when I make request I get:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Parameter value [2018-04-08T11:02:44] did not match expected type [java.util.Date (n/a)]
  </code></pre>
  
  <p>Do I need to convert the Date value before I send it as param for the SQL query?
  Or I need use other type of Date?</p>