title: Spring Data Repositories - Find where field in list
body: <p>I'm trying to use spring <code>PagingAndSortingRepository</code> with a <code>find MyEntity where field in fieldValues</code> query as follows:</p>
  
  <pre><code>@Repository
  public interface MyEntity extends PagingAndSortingRepository&lt;MyEntity, String&gt; {
  
      List&lt;MyEntity&gt; findByMyField(Set&lt;String&gt; myField);
  
  }
  </code></pre>
  
  <p>But of no success.</p>
  
  <p>I expected the above function to return all entities whose field matches one of the field values but it only returns <strong>empty results</strong>.</p>
  
  <p>Even though it seems like a pretty straight forward ability i could not find any reference to it in the <a href="http://docs.spring.io/spring-data/data-commons/docs/1.6.1.RELEASE/reference/html/repositories.html" rel="noreferrer">docs</a>.</p>
  
  <p>Is / How that could be achieved?</p>
  
  <p>Thanks.</p>