title: Spring Data JPA - How can I fetch data from a Date column using only month and day?
body: <p>I have a simple Spring Data JPA project working with mysql and I need to fetch all registers that match the day and month. The column I need to filter is type Datetime. </p>
  
  <pre><code>1935-12-08 00:00:00
  </code></pre>
  
  <p>If I want to do this in a db level it works fine: </p>
  
  <pre><code>SELECT * FROM my_database.event where event_date LIKE '%-12-08%';
  </code></pre>
  
  <p>It treats the date as a string. Now I need to do this in my repository yet nothing seems to work. I tried the basic one: </p>
  
  <pre><code>List&lt;Event&gt; findByEventDateLike(
          @Param("eventDate") Date eventDate);
  </code></pre>
  
  <p>but it says it returns an illegal argument exception since it is a Date object. I tried other combinations but apparently spring data jpa can't compare dates with partial information. </p>
  
  <p><strong>NOTE:</strong> To keep it clean I'm trying to avoid @Query sentences but if it is the only way to go, it is a valid answer.</p>
  
  <p>How can I do it? </p>