Here is an example including getter, setters and associations attribute (e.g. icon with a little arrow) for :
- Association 0..1 to 0..1
- Composition 1 to *
- Aggregation 1 to *
You can't in the
java code when reverse engineering a code see the difference between an aggregation or an composition because the only difference is provided by UML.
btw, this association type information is important this is why I think that adding a class diagram to a project will make it clearer