• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 547
  • Last Modified:

Rational Rose for J - aggregation

I have two classes in Rose, which are connected with aggregation relationship.

When I generate Java code, local variable is generated in both classes, like they aggregate each other.

How can I change this behaviour to create one way aggregation? i.e. generate variable only in one class?
0
Sektor
Asked:
Sektor
1 Solution
 
dt19643Commented:
If you don't make the relationship an aggregation associates, just an association, you will see that the member variable to the class will only be defined in one class.  On the side of the arrow, you should be able to right click and assign the role name to define the attribute name as well as public or private access.  Regenerate the code, and it should perform as expected.
0
 
SektorAuthor Commented:
I already found out that the Navigable checkbox is what makes the difference :).
I just had to uncheck it for the role, which I don't need to be generated.

But thanks anyway!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now