We have the following DAO stack:
- DB2 9.7 Express-C
- OpenJPA 2.0.1
- Spring 3.0.5
- Bitronix 2.1.1
How do you tell OpenJPA to add the WITH UR sql clause to the end of the query?
I browsed sites and manuals for several days, it should be something like this:
Query q = em.createQuery("select m from Magazine m where ... "); q.setHint("openjpa.FetchPlan.ReadLockMode","WRITE"); List r = q.getResultList();
but, alas, I could not find a workable OpenJPA property that would be passed as the setHint() argument and give the WITH UR result as the result, so I use SpringJDBC queries, which, unfortunately, I can no longer use.
Any ideas? Thank you very much
source share