title: spring data jpa query to limit
body: <p>I have query as such :</p>
  
  <pre><code>@Query("select a from Ability a where a.eventLogic = ?1 AND a.abilitySetId = ?2 ORDER BY    RAND() LIMIT ?3")
  </code></pre>
  
  <p>BUt i get an error:</p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: LIMIT near line 1, column 117
  </code></pre>
  
  <p>How can i programmatically put in the limit number?</p>