[jboss-user] [EJB 3.0] - JPA and Pessimistic locking/TopLink on JBoss
klejs
do-not-reply at jboss.com
Mon Nov 27 13:38:15 EST 2006
Hi,
I have two questions:
1. Is it possible with the Hibernate JPA implementation to use pessimistic locking? I have a use-case where this is a must. Is it possible to "hint" in a query as with TopLink's JPA implementation:
e = (Employee)em.createQuery("SELECT e FROM Employee e WHERE e.id = :id")
| .setHint("toplink.pessimistic-lock", "Lock")
| .setParameter("id", primaryKey)
| .getSingleResult();
2. Is it possible to use TopLink in JBoss? If it is are there any examples of this or known limitations?
Thanks in advance
/klejs
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988984#3988984
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988984
More information about the jboss-user
mailing list