title: Override Pageable findAll for selecting fewer columns in Spring Data Rest
body: <p>How to Override spring data repository to select only selected columns when going to pages that are discovered from /api page in spring data rest.</p>
  
  <p>I added findAll as below - </p>
  
  <pre><code>public interface UserRepository extends BaseRepository&lt;User, Integer&gt;, UserRepositoryCustom {
  
      @Query("select u from User u where email = :email and password = :password")
      @Cacheable(value = "user-cache", key = "#user.login")
      @RestResource(exported = false)
      public User findUserByEmailAndPassword(@Param("email") String email, @Param("password") String password);
  
      @RestResource(rel = "byEmail", path = "byEmail")
      public User findUserByEmail(@Param("email") String email);
  
      @RestResource(rel = "byPhone", path = "byPhone")
      public User findUserByPhone(@Param("phone") String phone);
  
       @Override 
       @Query("select u.id,u.email,u.phone from User u ")
       public Page&lt;User&gt; findAll(Pageable pageable);
  }
  </code></pre>
  
  <p>/api/users is giving an error - </p>
  
  <pre><code>{"cause":null,"message":"PersistentEntity must not be null!"}
  </code></pre>