Skip to content

Commit 019da23

Browse files
committed
Add note that current_user_ values are updated on user login only #1022
1 parent 45115b2 commit 019da23

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

content/modules/data-access/pages/jpql-extensions.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ select e from Region e where e.locale = :current_locale
3939

4040
The parameter value is derived from the locale of the current user session, which is obtained from the xref:security:authentication.adoc#current[CurrentAuthentication] object.
4141

42+
IMPORTANT: User attributes (`current_user_*`) are retrieved upon user login and stored in memory. Consequently, if the corresponding values are updated in the database, they are not immediately accessible to the application code.
43+
4244
[[case-insensitive-substring-search]]
4345
== Case-Insensitive Substring Search
4446

0 commit comments

Comments
 (0)