title: Get the number of records updated after executing a jpql query
body: <p>How to get the number of records updated after executing a jpql query like </p>
  
  <pre><code>UPDATE Device d SET d.name =:Name WHERE d.locationId=:id
  </code></pre>