Author Topic: {bag} what's that?  (Read 1477 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
{bag} what's that?
« on: February 25, 2025, 01:57:35 am »


Many data elements show a text “{bag}” to the right of their name. What does this mean and how do I get rid of it?
« Last Edit: February 25, 2025, 02:00:18 am by ngong »
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: {bag} what's that?
« Reply #1 on: February 25, 2025, 02:28:44 am »
That is UML for:  "a collection that does not enforce uniqueness, or order"
It's what happens if you set both isOrdered and isUnique to false.
See §7.5.3.2 Multiplicities of the UML specs.

Select the properties of your attribute, click on the [...] next to multiplicity, and uncheck "Allow Duplicates"

Geert

PDC

  • EA User
  • **
  • Posts: 107
  • Karma: +4/-0
  • Systems Engineer
    • View Profile
Re: {bag} what's that?
« Reply #2 on: February 25, 2025, 07:18:00 pm »
I never knew this was possible. Really useful little feature though. Thanks for asking and answering!

(Table 7.1 in UML spec 2.5.1, for anyone interested)
Phil

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: {bag} what's that?
« Reply #3 on: February 25, 2025, 10:30:57 pm »
 
That is UML for:  "a collection that does not enforce uniqueness, or order"
It's what happens if you set both isOrdered and isUnique to false.
See §7.5.3.2 Multiplicities of the UML specs.

Select the properties of your attribute, click on the [...] next to multiplicity, and uncheck "Allow Duplicates"

Geert
that's it. How would a script look like to uncheck "Allow Duplicates" for all attributes?
« Last Edit: February 25, 2025, 10:33:32 pm by ngong »
Rolf

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: {bag} what's that?
« Reply #4 on: February 25, 2025, 10:45:13 pm »
There is a property EA.Attribute.AllowDuplicates that you can set to false.

Geert