title: Filtering data with Spring boot CrudRepository
body: <p>I have a simple REST service which access data with Spring boot <code>CrudRepository</code>.</p>
  
  <p>This repository already implements pagination and sorting capabilities like this:</p>
  
  <pre><code>public interface FlightRepository extends CrudRepository&lt;Flight, Long&gt; {
    List&lt;Flight&gt; findAll(Pageable pageable);
  }
  </code></pre>
  
  <p>Calling it:</p>
  
  <pre><code>Sort sort = new Sort(direction, ordering);
  PageRequest page = new PageRequest(xoffset, xbase, sort);
  
  return flightRepo.findAll(page);
  </code></pre>
  
  <p>I would like to add also filtering to this repository (for example return only entities with <code>id &gt; 13 AND id &lt; 27</code>). The CrudRepository does not seem to support this functionality. Is there some way how to achieve this or do I need to use different approach?</p>
  
  <p>Thanks for any tips!</p>