Announcement Announcement Module
No announcement yet.
Voters + JPA Repositories Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Voters + JPA Repositories


    Can someone tell me if it is possible to automatically coordinate the JPA repositories with the security voters?
    I want to be able to filter some resources based on the voters decision on every find*(..) invocation I do, this without having to add the filter logic by myself on every find*(..) I do.

    Thanks in advance,

  • #2
    Spring Security does not provide a way to do this out of the box. I have seen a project named JPA Security that claims to integrate Spring Security with JPA. Note I have not done anything with this framework and cannot speak to the quality or even if it will meet your needs but thought I would mention it in the event it helps.

    PS: You might respond back to provide any feedback on the framework if you end up giving it a try.


    • #3
      Thanks for your reply. I will give it a try then.

      PS: Of course, I will leave here my feedback after testing it