Forum Index - Topic Index How to use of Astah (Pro/SysML/GSN/Com) Is there a bug with generation code and class diagram? |
Flat | Previous Topic | Next Topic |
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 |
Flat | Previous Topic | Next Topic |
Subject | Poster | Date |
---|---|---|
» Is there a bug with generation code and class diagram? | fabriciofx | 2006/9/23 13:11 |
Re: Is there a bug with generation code and class diagram? | Joba | 2006/9/27 13:43 |