title: Spring Data dynamic query
body: <p>I'm trying to set up a dynamic query using spring data, basically I have an array with a bunch of characteristics and I need to assemble the query based on those characteristics, pretty much something like "WHERE characteristic = A AND characteristic = B AND  characteristic = C" but the amount of characteristics may vary.</p>
  
  <p>I noticed that I can use the @Query annotation but is it possible to make the result of the @Query pageable ?</p>
  
  <p>Is there any other way to accomplish this?</p>
  
  <pre><code>Page&lt;Recipe&gt; findDistinctByNameContainingAndOrganizationAndCharacteristicsInOrIngredientsContainingAndOrganizationAndCharacteristicsInOrDescriptionContainingAndOrganizationAndCharacteristicsInAllIgnoreCase(
          String name, Organization organization1, List&lt;Characteristic&gt; characteristic1,
          String ingredients, Organization organization2, List&lt;Characteristic&gt; characteristic2,
          String description, Organization organization3, List&lt;Characteristic&gt; characteristic3,
          Pageable pageable);
  </code></pre>