title: How can I limit the number of rows updated in a JPQL query?
body: <p>I want to limit this update query to only update 5 rows:</p>
  
  <pre><code>Query updateQuery = em.createQuery("update Entity e SET e.myVar = 1");
  updateQuery.setMaxResults(5).executeUpdate();
  </code></pre>
  
  <p><code>setMaxResults</code> does not seem to do the job.  How can I do this in jpql?</p>