title: Hibernate - update query with where in clause
body: <p>I'll start with a heads-up warning that I'm a hibernate rookie.
  Let's say I've got a query like that:</p>
  
  <pre><code>UPDATE entity SET attribute='value' WHERE anotherAttribute IN (val1, val2);
  </code></pre>
  
  <p>What is the correct way to execute such query if my project uses hibernate?
  Do I go with simple createSQLQuery()? I'd like to do it in a more "object-oriented" way but I seem to have a problem with getting data from existing database and updating it. Do I use createQuery() and get the data to update and then go thought the result list and use setters? Another problem is the where in clause...</p>
  
  <p>Thanks for any help.</p>