Book a Demo

Author Topic: Primary keys  (Read 5545 times)

Nonchalant

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Primary keys
« on: December 13, 2006, 08:46:41 am »
Why do classes have the primary keys defined at the bottom.

Also what does embargo time mean?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Primary keys
« Reply #1 on: December 13, 2006, 09:18:07 am »
OK, I bite.

What's the context here? The word "embargo" does not appear in the current (build 800) documentation at all. Perhaps this is from version control or a floating license; do you use either?

David
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Primary keys
« Reply #2 on: December 13, 2006, 01:53:05 pm »
Quote
Why do classes have the primary keys defined at the bottom.

The UML Data Modeling Profile, on which EA's data modelling is based, defines primary keys as operations.

Quote
Also what does embargo time mean?

In media terms, an embargo time is the time before which news agencies are not allowed to go public with a story. In EA terms, I have no idea...
The Sparx Team
[email protected]

Nonchalant

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Primary keys
« Reply #3 on: December 14, 2006, 01:26:12 am »
Thankyou that gives me my answer. so what about the primary keys in the classes (class diagram)?

thomaskilian

  • Guest
Re: Primary keys
« Reply #4 on: December 14, 2006, 02:14:49 am »
Quote
Thankyou that gives me my answer. so what about the primary keys in the classes (class diagram)?

I guess because they are grouped according to stereotypes.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Primary keys
« Reply #5 on: December 14, 2006, 05:32:01 am »
Quote
so what about the primary keys in the classes (class diagram)?

If you are speaking about primary keys in Table elements taken from the Class toolbar, then that's what KP was referring to.

Sparx has used the Data Modeling Profile for UML (capitals intended, since this is an published work from an external source) as the paradigm for their data models. Since this profile is based on stereotyped class models, Sparx added the necessary components to their class modeling tool set.

Basically, KP was referring to how EA treats classes stereotyped as «table» elements. EA gives attributes of these elements a default stereotype of «column» and also stereotypes operations to indicate various keys and relationships. The default EA display settings group attributes and operations by stereotype and sort the groups alphabetically, although you can change these from the appropriate Tools | Options pages.
No, you can't have it!

Nonchalant

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Primary keys
« Reply #6 on: December 15, 2006, 02:15:09 am »
thats great guys. all i wanted to know was could I lay out the classes so the primary keys are at the top rather than at the bottom of the class??? ::)

thomaskilian

  • Guest
Re: Primary keys
« Reply #7 on: December 15, 2006, 05:24:50 am »
As I said: they are grouped according to stereotypes and you can't change the sort order (AFAIK).
Edit:Why not ask this before complaining?
« Last Edit: December 15, 2006, 05:26:04 am by thomaskilian »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Primary keys
« Reply #8 on: December 15, 2006, 05:44:20 am »
And, since they are stereotyped operations they will appear in the operations partition, which is below the attributes partition (where the columns of the table are defined). Thus, you will have them at the bottom - or at least below the columns, in case you show additional partitions.
No, you can't have it!

Nonchalant

  • EA User
  • **
  • Posts: 33
  • Karma: +0/-0
    • View Profile
Re: Primary keys
« Reply #9 on: December 18, 2006, 06:51:09 am »
thomaskilian.. what do u mean edit and what u mean AFAIK?

thanks guys again.
i wish EA was just straightforward.

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Primary keys
« Reply #10 on: December 18, 2006, 08:03:24 am »
Edit - he made an edit
(As Far As He Knows)

Edit what do you mean "u"
;-)
« Last Edit: December 18, 2006, 08:04:20 am by mikewhit »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Primary keys
« Reply #11 on: December 18, 2006, 09:36:48 am »
Or could that be "What do U mean by you?"  ;D
No, you can't have it!

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Primary keys
« Reply #12 on: December 18, 2006, 09:57:56 am »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Primary keys
« Reply #13 on: December 18, 2006, 01:22:27 pm »
I feel like such a green; hopefully I've not made a complete glass of myself...

Full point awarded Mike!
No, you can't have it!

thomaskilian

  • Guest
Re: Primary keys
« Reply #14 on: December 18, 2006, 02:46:44 pm »
Quote
thomaskilian.. what do u mean edit and what u mean AFAIK?

thanks guys again.
i wish EA was just straightforward.

I mean by Edit: "I have written this very post but unfortunately made a mistake or forgot something so I'm forced to Edit the post and ammend the changes and in order you know what I did I put a meta-tag in italics here which might give you a clue." R U satisfied?

Edit:Typo, hopefully not confusing U.
« Last Edit: December 18, 2006, 02:48:27 pm by thomaskilian »