Book a Demo

Author Topic: ea_guid for tagged value  (Read 3604 times)

novikovigor

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
ea_guid for tagged value
« on: September 02, 2013, 10:52:08 pm »
Hello!

I need to create tagged values by SQL insert. ea_guid will be calculated next way:
ea_guid = {ea_guid_for_attribute + "-CONST"}

So, ea-guid for tagged-value will be "{bla-bla-bla-CONST}" if ea_guid for attribute is "{bla-bla-bla}".
Now it works well, but should there be any problems with this calculated guid? Further i'll use this property as flag in model transformation.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: ea_guid for tagged value
« Reply #1 on: September 02, 2013, 11:08:34 pm »
Hello,

the GUID have to be unique, theoretically worldwide. You can get a GUID by API, tools or http://www.guidgen.com/.

Your workaround may work as long as the generated GUID is unique.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

novikovigor

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: ea_guid for tagged value
« Reply #2 on: September 02, 2013, 11:12:12 pm »
Thank you for quick answer and for link, Helmut!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ea_guid for tagged value
« Reply #3 on: September 02, 2013, 11:27:31 pm »
Quote
So, ea-guid for tagged-value will be "{bla-bla-bla-CONST}" if ea_guid for attribute is "{bla-bla-bla}".
Sounds like your guid will be longer than the usual GUID. I don't think that's a good idea since it is stored in EA's database in a column with fixed length. Better replace one part with a fixed string. That's also what EA does with some GUIDs.

q.

novikovigor

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: ea_guid for tagged value
« Reply #4 on: September 02, 2013, 11:52:47 pm »
Qwerty, I've solved my problem by generating ea_guid. I will use java API for it.