[Uml-devel] KDE/kdesdk/umbrello/umbrello
Sharan Rao
sharanrao at gmail.com
Fri Nov 28 12:55:07 UTC 2008
SVN commit 890075 by sharan:
Adding a foreign key constraint used to give the wrong roles to the
owning entity and the referenced entity. Not any more :)
CCBUG:171280
M +3 -1 umlview.cpp
--- trunk/KDE/kdesdk/umbrello/umbrello/umlview.cpp #890074:890075
@@ -2430,7 +2430,9 @@
// if the current diagram type permits relationships
AssocRules::allowAssociation(assocType, widget, w, false)) {
- AssociationWidget *a = new AssociationWidget(this, widget, assocType, w);
+ // for foreign key contstraint, we need to create the association type Uml::at_Relationship.
+ // The referenced entity is the "1" part (Role A) and the entity holding the relationship is the "many" part. ( Role B)
+ AssociationWidget *a = new AssociationWidget(this, w, assocType, widget);
a->setUMLObject(fkConstraint);
a->calculateEndingPoints();
//a->setVisibility(attr->getVisibility(), B);
More information about the umbrello-devel
mailing list