Joined: Mon Aug 24, 2009 1:53 am Posts: 1
|
Hi
I am using Filters to enforce access rights but have encountered a duplicate-code problem.
We have a @Filter "Access" specified in Entity ClassA and is specific to this particular entity. Another Entity ClassB has a Collection<ClassA>, but to enforce the same filter "Access" I will have to have the filter code from Entity ClassA duplicated in ClassB in relation to the Collection.
This is not an optimal solution since the filter consist of an sql query and repeating those is a NO-GO. :)
Does anybody know how to enforce an Entity filter when the Entity is accessed through a relation such as a collection?
Thank you in advance.
Kind regards Henrik Skriver
|
|