Author Topic: ID and GUID difference  (Read 4755 times)

xkrystof

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
ID and GUID difference
« on: December 12, 2007, 07:25:23 am »
Please,

could someone clarify me the difference between
ID and GUID?
When should not be ID used?

We have stored out project in database with plenty of models: use-case, data model, etc. Is it OK to use for searchong elments and packages ID???

Thanks
« Last Edit: December 12, 2007, 07:27:59 am by xkrystof »

thomaskilian

  • Guest
Re: ID and GUI difference
« Reply #1 on: December 12, 2007, 07:28:07 am »
A GUID is valid across several models. An ID just within a single one.

xkrystof

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: ID and GUID difference
« Reply #2 on: December 12, 2007, 07:47:37 am »
is it valid in a single project?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: ID and GUID difference
« Reply #3 on: December 12, 2007, 07:56:12 am »
Both are valid in a single project. You can use the one that works best for your purposes.

Remember that EA will assign the ID property via a counter. There may be several counters, for diagrams, elements, connectors, and so forth. In any given model an ID is unique (within its category). A GUID is unique across all categories, and across all models.
No, you can't have it!

xkrystof

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: ID and GUID difference
« Reply #4 on: December 12, 2007, 08:28:56 am »
Thanks for your repplies!
It helped ...

Eric Johannsen

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-0
  • Model Driven Business[ch0174]
    • View Profile
Re: ID and GUID difference
« Reply #5 on: December 23, 2007, 12:56:39 am »
It's important to realize that if you export your model to XMI then re-import it (without the "strip GUIDs") option:

- You WILL get new ID's
- You WILL KEEP the old Guid's

If you do any sort of integration with external systems you'll want to use the GUID.

Eric

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: ID and GUID difference
« Reply #6 on: December 23, 2007, 10:24:24 am »
One might also note that an ID is unique only within a table, while GUID is unique across all tables.