Skip to content

Commit

Permalink
improve wording about localized entities
Browse files Browse the repository at this point in the history
  • Loading branch information
vmikhailenko committed Jan 16, 2024
1 parent 5d508db commit 8f09f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/query-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ Not every database entity exposed via the CDS entity can be locked with the `loc
There are few notable examples of such restrictions:
* You cannot use `lock()` and `distinct()` in the same statement.
* Localized entities can be locked only if you manually reset the locale via dedicated request context without the locale as described here [Modifying Request Context](./request-contexts#modifying-requestcontext).
* Localized entities can be locked only if you manually reset the locale via dedicated request context without the locale as described in the chapter [Modifying Request Context](./request-contexts#modifying-requestcontext).
* Entities that contains "on-read" calculated elements can't be locked when the statement references them in the select list or filter.

As a general rule, prefer the statements that select primary keys with a simple conditions, such as `byId` or `matching`, to select the target entity set for locking.
Expand Down

0 comments on commit 8f09f58

Please sign in to comment.