Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
UlrichCech
Post subject: Code generation problemr with associations  PostPosted: Nov 24, 2007 - 03:42 PM
Registered Member
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
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Code generation problemr with associations  PostPosted: Nov 26, 2007 - 04:57 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

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
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
support-nipun
Post subject: RE: Code generation problemr with associations  PostPosted: Nov 28, 2007 - 06:46 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

Ulrich,
Thanks for sending the UMR. I'll get back to you with an update ASAP.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
support-nipun
Post subject: RE: Code generation problemr with associations  PostPosted: Dec 11, 2007 - 05:59 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

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
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
UlrichCech
Post subject: RE: Code generation problemr with associations  PostPosted: Dec 11, 2007 - 06:29 PM
Registered Member
Registered Member


Joined: Jan 27, 2007
Posts: 4

Hi Nipun,
thanks for your support.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Code generation problemr with associations  PostPosted: Dec 11, 2007 - 06:37 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

Your Welcome..

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
UlrichCech
Post subject: RE: Code generation problemr with associations  PostPosted: Jan 19, 2008 - 04:26 PM
Registered Member
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...
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Code generation problemr with associations  PostPosted: Jan 22, 2008 - 07:31 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

The fix for this issue is being targeted for the MyEclipse 6.5 release. Thank you for your patience.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
UlrichCech
Post subject: RE: Code generation problemr with associations  PostPosted: Jun 29, 2008 - 11:03 PM
Registered Member
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).
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Code generation problemr with associations  PostPosted: Jul 02, 2008 - 08:20 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 5659

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
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits