Bug 122262

Summary: C++ code generator does not produce vectors
Product: [Applications] umbrello Reporter: Brad Markel <tigera>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version: 1.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Brad Markel 2006-02-19 05:01:45 UTC
Version:           1.5 (using KDE KDE 3.5.0)
Installed from:    Ubuntu Packages
Compiler:          gcc-4.0 
OS:                Linux

I've noticed that in 1.5, when generating code from Umbrello, the C++ code generator does not produce vectors for "one to many" relationships in the generated code.  1.4.2 produced vectors without their specializations, 1.5 produces nothing at all.
I have tried with compositions, aggregations, and associations with one or both role names defined and also multiplicity "1..*" and "0..*" on one or both sides of the association, set with the "association properties" dialog box.
In addition, once a role name or multiplicity has been defined for an association, it cannot be removed; putting a blank in either box will cause it to re-create itself after clicking "OK" in the "association properties" dialog.
Comment 1 Oliver Kellogg 2006-03-16 07:57:01 UTC
> In addition, once a role name or multiplicity has been defined for an
> association, it cannot be removed; putting a blank in either box will
> cause it to re-create itself after clicking "OK" in the "association
> properties" dialog.

Right. I'm not sure whether this can be fixed in time for 1.5.2 but
there's a workaround: Right click on the label and select "change role
name". Confirming an empty role name will delete the label.
Comment 2 Brad Markel 2006-06-24 00:23:12 UTC
Strangely enough, the code generator also generates add/remove methods for these associations, which are fully qualified (have classname:: in front of them), but only if one checks the option to generate accessors.  The individual vectors, however, are not generated, and the vectors are returned without being specialized.
Comment 3 Brad Markel 2006-06-24 00:43:39 UTC
This may be a duplicate of 72042, which I just found today.  I apologize if it is.
Comment 4 Justin Zobel 2021-03-09 07:00:33 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.