And reading that we can use session and user attributes in query parameters… only?! If not, it would be welcome to get a sample using a generic parameter.
Currently JPQL row-level policies just modify JPQL queries, so each time you query the Order entity, some additional query condition is added.
Do I understand correctly that on each JPQL query you want to invoke some business logic that will calculate query parameter values and set these parameters to original query in addition to just modifying a query?
Ok, but I still don’t understand how does you sample relate to row-level policies?
Your example is just a regular query with the parameter that can be executed using the DataManager.