- This topic has 9 replies, 2 voices, and was last updated 17 years ago by
Loyal Water.
-
AuthorPosts
-
Ulrich CechMemberHello,
I just have a problem with the association modelling. If I want to generate the Java code for a simple Class1(1)-to-Class2(n) association, there is always a “Vector” inserted in the java class (but I have set the option in the preferences to “Array List”).
If I work without associations and make “simple properties” for the associations, the code generations works correctly (but then I only have separate entities in the diagram without any associations).
Can you give me an advice, how to get it work correctly?
Thanks in advance,
UlrichNovember 26, 2007 at 10:57 am #278971
Loyal WaterMemberUllrich,
Can you send me a sample UMR with the class diagram and association. Im not sure if I understood the problem.November 28, 2007 at 12:46 pm #279098
Loyal WaterMemberThis message has not been recovered.
December 11, 2007 at 11:59 am #279559
Loyal WaterMemberHi Ulrich,
Sorry for the delay in my response. I was able to reproduce this condition at my end as well and I have asked the dev team to take a look at this. They will get back to you.December 11, 2007 at 12:29 pm #279560
Ulrich CechMemberHi Nipun,
thanks for your support.December 11, 2007 at 12:37 pm #279561
Loyal WaterMemberYour Welcome..
January 19, 2008 at 10:26 am #280838
Ulrich CechMemberHi Nipun,
can you give me a short appreciation when this issue could be solved? I want to start a new project and I would like to use the UML-Tool from ME for designing.
Thanks for your support…
January 22, 2008 at 1:31 pm #280945
Loyal WaterMemberThe fix for this issue is being targeted for the MyEclipse 6.5 release. Thank you for your patience.
June 29, 2008 at 5:03 pm #286467
Ulrich CechMemberHi,
I just updated to ME 6.5, but the UML-related problems with associations are currently not fixed.
1. It doesn’t matter, what you choose in UML-settings code generation (Vector, ArrayList, LinkedList), the code-generator always uses Vector
2. It is also not typically to use concrete collection implementation (to choose from List, Set, Map would be more practically; the present code-generation for example is unusable if you use hibernate)
3. the name for the association is used in the code-generator for both ends (if it is a bidirectional association); this is also not practical
4. if you set the base namespace for the model, the code-generator doesn’t care and generates the classes in the “default” packageIn summary,with these issues the UML-part is not really useful/helpful in real application development (it is ok if you use it only for some simple graphical overviews, but code-generation should be avoided).
July 2, 2008 at 2:20 pm #286661
Loyal WaterMemberI’m sorry this issue exists in MyEclipse 6.5 as well but the management didn’t prioritize it for the 6.5 release. I’ll try and push it for our next release.
-
AuthorPosts