My Oracle Support Banner

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

Last updated on MARCH 17, 2019

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

Changes

 

Cause

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

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


In this Document
Symptoms
Changes
Cause
Solution
References


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