Hi guys,

I have recently tried to use the Netbeans UML editor again, after not
having much success before.  I am having better success than last
time, but I think I am suffering with a fundamental knowledge problem
that is causing me to scratch my head a bit!

Within the UML editor I have dragged + dropped multiple classes and
then tried to create relationships between them with combinations of
non-navigatable, navigatable and association, aggregation and
composition.  When I do code-gen, only the navigatable ones end up
creating code that I would expect, i.e. class A is navigatable to
class B with an attribute, so class A has a line in it with 'Class A
{ B myClassB; }", whereas non-navigatable I get something like "Class
A { }".

Here's an ascii view of what's going on ;-) where ----- indicates an
association, <> indicates aggregation, <#> indicates composition, -----
> indicates navigatable.  I show the results after generating code
based on the UML...

A --------- B   results in neither a or b referencing each other

A <>------- B  ditto

A <#>------ B ditto

A --------> B result in A having a reference to B

A <>------> B ditto

A <#>-----> B ditto

My questions are

* Why do you need navigatability before attributes are created in the
class?
* What's the point in being able to choose association, aggregation or
composition if the code gen does the same thing?
* If I write class D in code that references class E, then create the
UML diagram from the code, the diagram does not show the association /
aggregations, why not?
* Is it right that I've had to create two projects, one for the java
code and one for the UML, syncing from the model to the code
initially, then reverse engineering back to the model perioically and
vice-versa.

Any help with these n00b questions would be very much appreciated.

Many thanks,
Rob.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to