Book a Demo

Author Topic: identity for classes  (Read 5817 times)

soutou

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
identity for classes
« on: January 08, 2007, 02:27:33 am »
Hi,

I write for French press a paper comparing tools.

How can I define an attribute as identity (for it becomes a primary key after DDL generation) in an UML class?

I don't see any predefined stereotype.
Thanks for your response.


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: identity for classes
« Reply #1 on: January 08, 2007, 02:56:27 am »
Quote
Hi,

I write for French press a paper comparing tools.

How can I define an attribute as identity (for it becomes a primary key after DDL generation) in an UML class?

I don't see any predefined stereotype.
Thanks for your response.

Hi soutou,  Welcome,

This is primarily a user forum.  To get a more precise response from Sparx Systems, use the [size=13]Support[/size] link at the top of the page.

However, for my own part, I would not (necessarily) expect a stereotype for this purpose.  If you search for the topic DomainKey you may see some discussion on this point.  Some of us take the view that the use of a DomainKey as the primary key is not a good design decision.  We prefer the use of Surrogate keys for that purpose.

Also, if you look into the DDL Transform Template (Settings|Transformation templates... [Ctrl+Alt+H]) you may find some pointers.

Others may have different viewpoints...

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!