Book a Demo

Author Topic: How to specify the name of the collection?  (Read 2495 times)

lezhik

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
How to specify the name of the collection?
« on: July 18, 2005, 07:36:55 am »
I want to create a class attribute which type is the collection. If the only "Compose" relation is used then the name of the attribute is generating automatically when the code is generating. If an attribute is associated with this relation then an attribute is generated not as collection. Even if the "Attribute is a collection" checkbox is checked.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to specify the name of the collection?
« Reply #1 on: July 18, 2005, 03:42:44 pm »
I think there are a couple of things going on here.

If an attribute has the same name as an association role, the attribute will be used for generation, not the association.

Collections are generated from associations where the multiplicity of one role is greater than 1.  You can then set up the collection classes.  (See http://sparxsystems.com.au/EAUserGuide/index.html?settingcollectionclasses.htm)

Simon

lezhik

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: How to specify the name of the collection?
« Reply #2 on: July 19, 2005, 12:07:55 am »
This setting were already configured. They helps only if the collection with default name is generarted. But I don't see the way how to specify the name of the collection  :'(

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to specify the name of the collection?
« Reply #3 on: July 19, 2005, 03:43:57 pm »
Sorry, I don't understand what problem you're having.  Could you please explain what you have done, what you are trying to do and where you think that's going wrong?

Simon
« Last Edit: July 19, 2005, 03:44:25 pm by simonm »