title: Spring Data - AND condition in a repository method name for a list
body: <p>I would like to combine a list with AND condition.</p>
  <p>Example:</p>
  <pre><code>class Foo{
      List&lt;String&gt; names;
  }
  
  FooRepository{
     List&lt;Foo&gt; findAllNamesAnd(List&lt;String&gt; names);
  </code></pre>
  <p>Foo1 names = Foo and Bar</p>
  <p>Foo2 names = Foo and Test</p>
  <p>Foo3 names = Foo and Bar and Test</p>
  <p>So if i look for findAllNamesAnd(List.of(&quot;Foo&quot;, &quot;Bar&quot;)); the result should be contain  Foo1 and Foo3</p>
  <p>Is there a good way to do this with spring data?</p>