-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Best mapping strategy
PostPosted: Wed Mar 15, 2006 6:04 am 
Newbie

Joined: Wed Mar 15, 2006 5:46 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.