title: @NamedQuery override findAll in Spring Data Rest JpaRepository
body: <p>Is there a way to override the findAll query executed by Spring Data Rest?</p>
  
  <p>I need a way of filtering the results based on some specific criteria and it seems that using a <code>@NamedQuery</code> should be along the lines of what I'm looking for so I setup a test.</p>
  
  <pre><code>@Entity
  @Table(name = "users")
  @NamedQueries({
      @NamedQuery(name = "User.findAll", query="SELECT u FROM User u WHERE u.username = 'test'"), 
      @NamedQuery(name = "User.findNameEqualsTest", query="SELECT u FROM User u WHERE u.username = 'test'")   
  })
  public class User implements Serializable, Identifiable&lt;Long&gt; { }
  </code></pre>
  
  <p>With this in place I would expect SDR to utilize my findAll() query (returning 1 result) but instead it executes the same old findAll logic (returning all results).</p>
  
  <p>In my Repository I added:</p>
  
  <pre><code>@Repository
  @RestResource(path = "users", rel = "users")
  public interface UserJpaRepository extends JpaRepository&lt;User, Long&gt; {
  
      public Page&lt;User&gt; findNameEqualsTest(Pageable pageable);
  }
  </code></pre>
  
  <p>and in this case it DOES pick up the provided <code>@NamedQuery</code>. So...</p>
  
  <p>How should I go about overriding the default <code>findAll()</code> logic? I need to actually construct a complex set of criteria and apply it to the result set.</p>