My Oracle Support Banner

Pessimistic Lock JQPL Translated To SQL Without FOR UPDATE Statement (Doc ID 1554217.1)

Last updated on MAY 24, 2013

Applies to:

Oracle TopLink - Version to [Release Oracle11g]
Information in this document applies to any platform.


Tried to lock one record that was queried from DB for update. JPQL is used and set it's hints with 'QueryHints.PESSIMISTIC_LOCK'. But the translated SQL was without 'FOR UPDATE' statement which is expected in it. JPQL code is as below:


Related eclipse bug link:


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.