[EMAIL PROTECTED] wrote:
(to give you one reason: I need it myself :-) )
(end of quote)




in case you're wondering about a scenario that's very challenging without 
association classes, consider this case:



1. a user can have many roles

2. a role can have many users



user [0..*] ---- [0..*] role



3. a user is linked to a regional office (the place where he's employed, we say 
this office to be 'primary')

4. a regional office may have many users



user [0..*] ---- [1] regional office



now the problem is that it's not sufficient to simply have roles assigned to 
users, the reason is that a user may go to any regional office and there he 
might have a different role



example: I work as a 'manager' in Brussels, but I'm simply a 'guest' in 
Colorado Springs



so there needs to be a link between user and role, this can be done using a 
foreign key to 'regional office' from within 'role' but then we would create an 
ambiguos relationship since there's already a link from 'user' to 'regional 
office'



I hope I make sense here, .. I think association classes are extremely well 
suited in this case (just need to draw an association from this association 
class to 'regional office' and we're done), but I don't see an equally 
well-designed alternative without using such class



if someone knows, please reply :-)
--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1394#1394
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to