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 11.1.1.4.0 to 11.1.1.5.0 [Release Oracle11g]
Information in this document applies to any platform.

Symptoms

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:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347592

Cause

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 hundreds of Community platforms