title: Pageable and @Param in a spring data JpaRepository method issue [2]
body: <p>I'm aware of <a href="https://stackoverflow.com/questions/24170972/pageable-and-param-in-a-spring-data-jparepository-method-issue">this</a> question, but using <code>org.springframework.data:spring-data-jpa:1.7.0.RELEASE</code> I'm still having the same issue (<code>Either use @Param on all parameters except Pageable and Sort typed once, or none at all!</code>). My class is:</p>
  
  <pre><code>public interface BalanceHistoryRepository extends JpaRepository&lt;BalanceHistory, Long&gt; {
      @Query("select bh from BalanceHistory bh where bh.account.id = :idAccount")
      public BalanceHistory findCurrentBalanceByAccountNumber(PageRequest pageCriteira, @Param("idAccount") long idAccount);
  }
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <p>Call:</p>
  
  <pre><code> Pageable page = new PageRequest(0, 1, Sort.Direction.DESC, "date");
          BalanceHistory bh = balanceHistoryRepository.findCurrentBalanceByAccountNumber(1,page);
  </code></pre>
  
  <p>Method:</p>
  
  <pre><code>@Query("select bh from BalanceHistory bh where bh.account.id = :idAccount")
  public BalanceHistory findCurrentBalanceByAccountNumber(@Param("idAccount") long idAccount, Pageable pageCriteira);
  </code></pre>