Book a Demo

Author Topic: Primary Key -- attribute in class model  (Read 5705 times)

siva02

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Primary Key -- attribute in class model
« on: August 07, 2010, 01:45:54 am »
Hi,

I am trying to set an attribute in class model as Primary Key.  I do not see any options.  I could see PK option at Table level, however I would like to set it earlier at class level itself.  Can anyone help on this please?

Thanks,

Siva

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Primary Key -- attribute in class model
« Reply #1 on: August 09, 2010, 04:05:50 pm »
Siva,

In Classes a primary key is not really a known concept.
If I were you I would use a stereotype or tagged value to indicate this.

Geert

siva02

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Primary Key -- attribute in class model
« Reply #2 on: August 09, 2010, 11:11:31 pm »
Geert,

Thanks for the response.  When I generate DDL, I am trying to see if Primary key will be generated automatically, if I could assign PK somehow.  We are trying to use the class for Java and DB purposes.

Any suggestions?

Thanks,

Siva

ff

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Primary Key -- attribute in class model
« Reply #3 on: August 11, 2010, 04:46:30 pm »
Siva,

do you mean the IsOrdered property of an attribute?

kr,
FLip

siva02

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Primary Key -- attribute in class model
« Reply #4 on: August 13, 2010, 05:20:25 am »
kr,

I see in documents talking about IsOrdered property and now you mentioned it,... how do i set it for an attribute in a CLASS please?

Thanks,

Siva