title: Spring Data Pageable: Returns empty content
body: <p>I'm new with Spring Data and Spring MVC and I don't understand why am I getting empty content:</p>
  
  <pre><code>@RequestMapping(value="/pages", method=RequestMethod.GET)
  @ResponseBody 
  public Page&lt;Client&gt; contactsPages(@RequestParam int page, @RequestParam int size) {
      Pageable pageable = new PageRequest(page, size, new Sort("id"));
      Page&lt;Client&gt; pageResult = clientRepository.findAll(pageable);
  
      return pageResult;
  } 
  </code></pre>
  
  <p>The result of my json when I test the url is:</p>
  
  <pre><code>{"content":[],"last":true,"totalElements":2,"totalPages":1,"size":5,"number":1,"sort":[{"direction":"ASC","property":"id","ignoreCase":false,"nullHandling":"NATIVE","ascending":true}],"first":false,"numberOfElements":0}
  </code></pre>
  
  <p>And if you have good example making pageable request using Spring Data and Spring MVC and AngularJS; It will be a big help for me.</p>