Hello, is there a way to do something like this?
@RowLevelRole(
name = “userPartOfProjectTeam”,
code = “user-part-of-project-team”)
public interface UserPartOfProjectTeamRole {@JpqlRowLevelPolicy( entityClass = Project.class, where = "{E}.teams.users IN :current_user" ) void userProjects();
}
I didn’t found a way parse current logged user to jpql query… I want to get all projects where current user is assigned. Teams and Users are Lists.