Hi all together,
I have the following situation:
Many different entities (Customer, Supplier, Product etc.) and I want to map different instances to some kind of access role, where AccessRole must be always the same entity type and one specific instance (Customer 1) belongs to one specific instance of AccessRole.
AccessRole itself should hold a list of AccessRight and one AccessRight could belong to many AccessRoles
How to implement such a mapping?
[Customer 1] -> [AccessRole 1] -> {[AccessRight 1], [AccessRight 2], ...}
[Customer 2] -> [AccessRole 2] -> {[AccessRight 2], [AccessRight 3], ...}
...
[Supplier 1] -> [AccessRole 3] -> {[AccessRight 1], [AccessRight 4], ...}
[Supplier 2] -> [AccessRole 4] -> {[AccessRight 3], [AccessRight 5], ...}
...
[Product 1] -> [AccessRole 6] -> {[AccessRight 2], [AccessRight 5], ...}
[Product 2] -> [AccessRole n] -> {[AccessRight 5], [AccessRight 6], ...}
...
Thanks Meikel
|