I created a class diagram, Car, and another called Wheel. When I associated
the car with 4 wheels by generating a directed association and then changing
the multiplicity I chose to generate the JAVA code. The code for car just gave
"Wheel wheel;". It didn't create an array or any other type of collection. Is
this a bug or am I doing something wrong?
Thanks,
Keith
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-11-09
Did you guess how to solve this problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I started to use Eclipse Modelling Framework, which also offers forward
engineering amongst other things and it works fine but for some applications
it might be over-kill...
If you're considering using EMF, then this is a very good tutorial to get you
started:
I created a class diagram, Car, and another called Wheel. When I associated
the car with 4 wheels by generating a directed association and then changing
the multiplicity I chose to generate the JAVA code. The code for car just gave
"Wheel wheel;". It didn't create an array or any other type of collection. Is
this a bug or am I doing something wrong?
Thanks,
Keith
Did you guess how to solve this problem?
No sorry unfortunately not.
I started to use Eclipse Modelling Framework, which also offers forward
engineering amongst other things and it works fine but for some applications
it might be over-kill...
If you're considering using EMF, then this is a very good tutorial to get you
started:
http://www.vogella.de/articles/EclipseEMF/article.html