This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 136837 - Problem Re-Creating a previous created UML model
Summary: Problem Re-Creating a previous created UML model
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-09 16:02 UTC by rbotero
Modified: 2008-06-13 22:18 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rbotero 2008-06-09 16:02:33 UTC
If you create a model with two related classes A and B, and one navigable relationship from A to B.   You will lose the
relationship if you generate the code and next try to do reverse engineering re-creating the original UML model.
Comment 1 Viktor Lapitski 2008-06-09 22:10:01 UTC
During Reverse Engineering new elements A and B and an aggregation (as there isn't enough 
info in the java code to distinguish what does an attribute represent - an association 
or an aggregation - an aggregation is created)  was deduced from the source code. They 
replaced the old elements. The old association between the old elements was deleted. 

A merge logic must be added into RE to try to identify and match between relationships 
already existing in the model and ones that are produced by source analysis during RE.