Spring Data JPA and spring-security: filter on database level (especially for paging)
问题 I'm trying to add method level security to my open source project using annotations and spring-security. The problem I'm now facing are findAll methods especially the ones for Paging (eg. returning a page). Using @PostFilter works on Lists (but I personally believe its not a good idea to filter in application and not database) but completely fails on paging queries. This is problematic because I have an Entity containing List<Compound> . There are different implementations of compound and a