Author Topic: attributes defined for stereotype (of the type metaclass table ) not visible  (Read 3498 times)

sam2018

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile


I have created a stereotype as shown which belongs to metaclass table.I have defined one attribute.But once profiles in saved and MDG is created and import,I dont can see the attribute defined inside a properties of that stereotype
created object in EA looks as below without attribute i defined.

I am using EA 16.1
could you please helpß
https://i.imgur.com/Oxx1cNq.png

https://i.imgur.com/hspGpy8.png
« Last Edit: September 17, 2024, 08:02:44 am by sam2018 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Stereotype properties become (formerly) so-called taged values. Now they are stereotype properties (which you find under the tagged values pabe). But they will not create an attribute in the instantiated element. To do that you will have to write an add-in that does tha job.

q.

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1370
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
As qwerty mentioned, this is not the purpose of stereotypes. Furthermore DB tables have a specific implementation in EA which may be tricky to extend with UML profiles.
If you want predefined attributes (= table columns) on new tables, you can use Template Packages: create a package and diagram with the modified table, and set this package as the Project Template Package (Settings > Settings menu). From then any new table will be created according to your template.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


sam2018

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
I am totally new here in MDG
for ex  I created a stereotype of the meta type class
defined an attribute called status.
So once exported this profile .
resulting element in EA will show defined attribute in MDG inside a property window on right side.
I am trying a same thing n Table metatype
https://i.imgur.com/IRJzaEc.png

thanks to give more insight in this

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Have you checked in the tags section?

Your example actually has two stereotypes, so that might be reason for it not showing up on the properties pane.
Now EAUML::Table is a special one, so there might be a reason you end up with two stereotype. Apparently a lot of features regarding tables use a hardcoded reference to the stereotype EAUML::Table

Geert

sam2018

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Hallo Geert thanks
I have checked in Tags section in resulting EA object.I do not see any attribute there.
yes we see 2 stereotypes in case of this Table.
I am not finding solution
but meanwhile i tried this  as in a picture.I am not sure this is correct.
Then I could see attribute.But PK(Primary key ) is not visible on a object as in the previous case
https://i.imgur.com/V8sZG1u.png

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Yeah, thats the thing I mentioned about EAUML::table being hardcoded.

I'm not sure if there is a solution. You better ask sparx support.

Geert