Consider an example 11.37 of the qualified association provided in clause 11.5.5 of UML Specification:
It follows from this answer and the link provided therein that this model should be implemented as a map. But when I try to do it in BoUML:
the system generates code for Bank which is not syntactically correct:
class Bank {
private:
map<Person *> accounts_;
};
Suppose I want to produce something like that:
class Bank {
private:
map<AccountNo, Person *> accounts_;
};
As a workaround I could, say, use ${association} and modify the declaration
${comment}${static}${thread_local}${mutable}${volatile}${const}${stereotype}<${association}, ${type} *> ${name}${value};
but this is wrong - AccountNo is not an AssociationClass.
Roundtrip does not produce a suitable model too.
Is there a clean way to implement 11.37?

