title: Spring Data JPA - custom @Query with "@Param Date" doesn't work
body: <p>I create custom query for getting Invoice data by <strong>Date</strong>, but it returns <strong>null</strong>. I'm sure that I set exactly the same Date for query that exists in database.</p>
  
  <p>I use custom query because I want more advance query to write. But issue exist in this simple query. Here is my sample code:</p>
  
  <pre><code>@Query("select i from Invoice i where " +
          "i.expirationDate = :expDate")
  Invoice findCompanyInvoiceByDate(@Param("expDate") Date expDate);
  </code></pre>
  
  <p>I tried this code but it does not work also:</p>
  
  <pre><code> Invoice findByExpirationDate(Date expirationDate);
  </code></pre>
  
  <p>I also tried to add <code>@Temporal(TemporalType.DATE)</code> before Date and @Param but result is null.</p>