I try to learn how to filter this relationship:
EntityA {@ManyToMany Collections (target entities = roll.class) collection & lt; Role & gt; role; } Users {@ManyToMany (target = role.class) collection & lt; Role & gt; role; }
What I try to achieve is something like RBAC. Entity should be accessible from some (multiple) roles. A user also has fixed (multiple) roles.
How can I return only the Entity Rows for a specific user? All EntityA rows which mean that there are equal roles in the form of a user?
It means only two collections (the role of Antitaya which plays a role from the user) Is it possible that a prediction?
No comments:
Post a Comment