Book a Demo

Author Topic: Aggregation end not generated in code  (Read 5763 times)

ylaporte

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Aggregation end not generated in code
« on: February 13, 2010, 07:18:33 am »
The following issue seems like a bug:

ClassA<><------------->ClassB

In a situation where I have a shared aggregation (the behavior is the same with composite aggregations) with navigation in both directions. Independently of role names and multiplicity, ClassA contains the reference to class B but ClassB doesn't contain the reference to ClassA. Also, if ClassA resides in a diferent package, the import statement for the class is generated, but still not the attribute in the ClassB.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Aggregation end not generated in code
« Reply #1 on: February 15, 2010, 08:40:24 am »
Correct, EA intentionally only generates the attribute for the aggregate member, never the reference to the owner.

ylaporte

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Aggregation end not generated in code
« Reply #2 on: February 16, 2010, 02:00:03 am »
Mhh.. not a good surprise, I would have expected the generation of attributes to be determined by navigability.

We're migrating a model from Rose and the code form that model is regenerated regularly. This really complicates things.

What is the usual way to weight in on a change of the software?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Aggregation end not generated in code
« Reply #3 on: February 16, 2010, 07:01:53 pm »
Send in a feature request (use the link on the bottom of the page)

And then... go to church and burn some candles :-/ (or similar depending on your religion)

Geert