Hi was taking a look into documentation about RowLevelRol at design time:
@RowLevelRole(
name = “Can see only Orders created by themselves”,
code = “orders-created-by-themselves”)
public interface CreatedByMeOrdersRole {
@JpqlRowLevelPolicy(
entityClass = Order.class,
where = "{E}.createdBy = :current_user_username")
void order();
}
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.
Thank’s in advance