title: OpenJPA dirty read hint
body: <p>We've got the following DAO stack:</p>
  
  <ul>
  <li>DB2 9.7 Express-C</li>
  <li>OpenJPA 2.0.1</li>
  <li>Spring 3.0.5</li>
  <li>Bitronix 2.1.1</li>
  </ul>
  
  <p>How do you specify OpenJPA to add <code>WITH UR</code> sql clause to the end of the query?</p>
  
  <p>I'd browsed sites and manuals alike for days, it should be something like this:</p>
  
  <pre><code>Query q = em.createQuery("select m from Magazine m where ... ");
  q.setHint("openjpa.FetchPlan.ReadLockMode","WRITE");
  List r = q.getResultList();
  </code></pre>
  
  <p>but alas, I've been unable to find a working OpenJPA property that would be passed as <code>setHint()</code> argument and yield <code>WITH UR</code> as result, so I use SpringJDBC queries which I unfortunately can't use any longer.</p>
  
  <p>Any ideas? Thank you very much</p>