Menu

Java Code for Multiplicity > 1

Help
2010-07-12
2012-10-15
  • Keith Ó Dúlaigh

    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

     
  • Anonymous

    Anonymous - 2010-11-09

    Did you guess how to solve this problem?

     
  • Keith Ó Dúlaigh

    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

     

Log in to post a comment.