- This topic has 9 replies, 2 voices, and was last updated 16 years, 4 months 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,
Ulrich
Loyal WaterMemberUllrich,
Can you send me a sample UMR with the class diagram and association. Im not sure if I understood the problem.
Loyal WaterMemberThis message has not been recovered.
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.
Ulrich CechMemberHi Nipun,
thanks for your support.
Loyal WaterMemberYour Welcome..
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…
Loyal WaterMemberThe fix for this issue is being targeted for the MyEclipse 6.5 release. Thank you for your patience.
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).
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