Main Menu
Login
SSL SecureMode
Username:
Password:  
Lost Password?
Register now!
ChangeVision Members Map
Search
Forum Index   -   Topic Index
   How to use of Astah (Pro/SysML/GSN/Com)
     Is there a bug with generation code and class diagram?

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
fabriciofx
Posted on: 2006/9/23 13:11
Just popping in
Joined: 2006/9/23
From:
Posts: 1
Is there a bug with generation code and class diagram?
Hello everybody! :)

I don't know if it's a bug or a feature (correct me if I am wrong). I'm using the JUDE Community 3.0.3 (Model 22), and I did this Class Diagram:

City [0..*] -----------> [1] Country

So we've 2 classes (City, Country) and one association. In the association, the City side is "non navigable" and Country side "navigable". So, the Java code generated is something like this:

Country.java
------------

public classs Country {
private City city;
}

City.java
---------

public class City {
}

Ok, no problem with this. But, after I save my project and open it again, the class diagram is the same, but the code generated is something like this:

Country.java
------------

public classs Country {
private City[] city;
}

City.java
---------

public class City {
private Country country;
}

And I need changed by hand (again) the "non navigable" and "navigable" association parameters to get the first code again. So, come back to the first question: Is it a bug or a feature? :)

Thanks in advance,

--fx

Joba
Posted on: 2006/9/27 13:43
Developer
Joined: 2006/6/6
From:
Posts: 969
Re: Is there a bug with generation code and class diagram?
Thank you very much for your post fx!

It seems like a bug and we will fix it in future release.

Thanks again.

Satomi
Threaded | Newest First Previous Topic | Next Topic | Top