title: Dynamically Setting N in findByTopN in Spring JPA Repository
body: <p>I have a Spring Boot application which has a Repository like this.</p>
  
  <pre><code>public interface EmployeeRepository extends CrudRepository&lt;Employee, Long&gt; {
    List&lt;Employee&gt; findTop3ByOrderBySalaryDesc();
  }
  </code></pre>
  
  <p>Function <code>findTop3ByOrderBySalaryDesc</code> in above, finds the top 3 employees with the highest salaries. Is there a way to dynamically specify the number of employees in this example? For example, is it possible to kind of assign an integer parameter for this function which would determine the number of employees?  </p>