> 
> (responding to Sumesh Sundareswaran)
> 
> > How would you indicate unique keys in a class diagram.
> 
> Generally speaking, in an OO class diagram you wouldn't
> represent unique keys; an OO object is expected to have
> a unique object identity that never needs to be visible to
> the program.
> 
> However, you may find the use of an UML 'qualifier' meets
> your needs.  I won't go into detail here, the entry in the
> UML reference manual covers nearly 7 pages  ;-)
> 
> If this isn't of any use to you, try giving us a bit more 
detail
> on why you want unique keys.
> 

(Inn answer to both the question and Pauls's reply.) 

If you are building an analysis model it is necessary to 
identify every instance of your classes. A way (not the only, 
but my recommendation) is to identify the unique key attributes 
for each class and consider their values. 

The notation I use to identify the unique key attributes for a 
class is to place an asterisk '*' in the stereotype field of 
each primary key attribute for the class. (I've also seen 'PK' 
used and various other notations). I don't believe that there 
is a standard so take your choice.

Les.

________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

Reply via email to