Hi there,
I have two classes (Project and Firm), which are linked by two associations.
The reason is, that a Project can have multiple project members, but additionally up to one, not mandatory builder (its all about construction business stuff...).
The builder though can also be a regular project member at the same time.
A Firm on the other hand can be both projectmember and/or builder in multiple projects.
So I created both associations, where projectMember gets the {union} constraint and builder the {subset} constraint.
I altered the transformations, that if a destinationMulitplicity is of type (0..*; *; 1..*), that a DataSet will be created within the destination class.
This is how I do it:
%if connectorDestMultiplicity != "0" or connectorDestMultiplicity != "1" or connectorDestMultiplicity != "0..1" %
$attName=%connectorDestRole%+"sDS"
$type="DataSet"
%Property($attName,$type)%
%Attribute__Prop_Attr($attName,$type)%
%endTemplate%
However, the DataSets often (not always?) ends up with the connectorDestRole of builder, not of projectMember.
Any way to control which connectorDestRole the template uses?