Solved

Rational Rose for J - aggregation

Posted on 2002-07-25
2
506 Views
Last Modified: 2012-08-13
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
Comment
Question by:Sektor
2 Comments
 

Accepted Solution

by:
dt19643 earned 50 total points
ID: 7177124
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
 

Author Comment

by:Sektor
ID: 7177161
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JDeveloper 12c for 32 bit 4 67
java.io.BufferedReader   readLine()  //returns the entire file ? 4 59
Java SE 8u111  Lot of stuff broke 11 52
session migration servlets 2 24
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now