| Author |
Message |
|
|
Post subject: Code generation problemr with associations
Posted: Nov 24, 2007 - 03:42 PM
|
|
Registered Member


Joined: Jan 27, 2007
Posts: 4
|
|
Hello,
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 |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Nov 26, 2007 - 04:57 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5662
|
|
Ullrich,
Can you send me a sample UMR with the class diagram and association. Im not sure if I understood the problem. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Nov 28, 2007 - 06:46 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5662
|
|
Ulrich,
Thanks for sending the UMR. I'll get back to you with an update ASAP. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Dec 11, 2007 - 05:59 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5662
|
|
Hi 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. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Dec 11, 2007 - 06:29 PM
|
|
Registered Member


Joined: Jan 27, 2007
Posts: 4
|
|
Hi Nipun,
thanks for your support. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Dec 11, 2007 - 06:37 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5662
|
|
| Your Welcome.. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Jan 19, 2008 - 04:26 PM
|
|
Registered Member


Joined: Jan 27, 2007
Posts: 4
|
|
Hi 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... |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Jan 22, 2008 - 07:31 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5662
|
|
| The fix for this issue is being targeted for the MyEclipse 6.5 release. Thank you for your patience. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Jun 29, 2008 - 11:03 PM
|
|
Registered Member


Joined: Jan 27, 2007
Posts: 4
|
|
Hi,
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" package
In 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). |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Code generation problemr with associations
Posted: Jul 02, 2008 - 08:20 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5662
|
|
| I'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. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|