Book a Demo

Author Topic: compositionKind not working on Aggregate metaclass  (Read 7190 times)

PeteC

  • EA User
  • **
  • Posts: 91
  • Karma: +1/-0
    • View Profile
compositionKind not working on Aggregate metaclass
« on: August 13, 2021, 12:48:47 am »
If I create my own connectors from an Association metaclass, the compositionKind correctly controls the Aggregation value (under the Target section in the Properties window) and whether the relationship has a black filled or un-filled diamond at the and.

If I change the metaclass to Aggregation, the compositionKind parameter has no effect. Is there something else that I also or instead of need to set for Aggregation relationship customisation?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: compositionKind not working on Aggregate metaclass
« Reply #1 on: August 13, 2021, 01:21:04 am »
Just thinking loud: there has been hassle with the aggregation. Not sure if you should use that metaclass at all. I think you should use an association with the aggregtion kind.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: compositionKind not working on Aggregate metaclass
« Reply #2 on: August 13, 2021, 08:05:29 am »
Just thinking aloud: there has been a hassle with the aggregation. Not sure if you should use that metaclass at all. I think you should use an association with the aggregation kind.

q.
Wot 'e sed! Pete,
Aggregation is NOW a deprecated Metaclass. It is retained for legacy reasons.

As Yul Brynner used to say... "Whatever you do, don' use Aggregation"   ;)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: compositionKind not working on Aggregate metaclass
« Reply #3 on: August 13, 2021, 08:29:37 am »
If I change the metaclass to Aggregation, the compositionKind parameter has no effect.


You could change the metaclass to Composition
The Sparx Team
[email protected]