title: Spring data jpa findByDate is always returning an empty list
body: <p>I'm using in my application spring-data-jpa 1.9.2, mysql-connector 5.1 and hibernate 4.3.11 Final.</p>
  
  <p>My Order class has a "creation" attribute of type date.</p>
  
  <pre><code>@Entity
  public class Order implements Serializable {
  private static final long serialVersionUID = 1L;
  @Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  private Long id;
  private java.util.Date creation;
  }
  </code></pre>
  
  <p>In my JpaRepository I have these two methods to get the orders by date:</p>
  
  <pre><code>List&lt;Order&gt; findByCreation(Date date);
  @Query("select o from Order o where o.creation = ?1")
  List&lt;Order&gt; findByCreation2(Date date);
  </code></pre>
  
  <p>I'm not having an exception, but always an empty list, this can help you understand:</p>
  
  <pre><code>Date date = new Date();
  Order order = new Order(date);
  orderRepository.save(order);
  Date creationFromDB = orderRepository.findOne(1L).getCreation();
  System.out.println("eq? : "+ creationFromDB.equals(order.getCreation()));
  List&lt;Order&gt; ods = orderRepository.findByCreation(creationFromDB);
  List&lt;Order&gt; ods2 = orderRepository.findByCreation2(creationFromDB;
  System.out.println("\n ods.size: " + ods.size() +", ods2.size: "+ods2.size());
  </code></pre>
  
  <p>The output is :</p>
  
  <pre><code>eq? : true
  ods.size: 0, ods2.size: 0
  </code></pre>
  
  <p><strong>NOTE</strong></p>
  
  <p>The select request had executed correctly and twice:</p>
  
  <pre><code>DEBUG org.hibernate.SQL - select order0_.id as id2_4_, order0_.creation as creation3_4_ from Orders order0_ where order0_.creation=?
  </code></pre>
  
  <p>What am I missing?</p>