note: Frank sent me his model


I started a new project using andromdapp:generate, selecting Spring as the 
persistence framework, I had 2 model validation errors when trying to generate 
code from it:





ERROR [AndroMDA] Model Validation Failed - 2 VALIDATION ERRORS

ERROR [AndroMDA] 1) 
[Data::Pass::PMT::Project]:The name of each 
navigable connecting association end must be unique.

ERROR [AndroMDA] 2) 
[Data::Pass::PMT::ProjectUser]:The name of 
each navigable connecting association end must be unique.





I noticed the model contained two entities Project and ProjectUser which share 
4 associations.



In these 4 associations, Project has two anonymous association ends and 
ProjectUser has two association ends called leader.



After I corrected these errors everything generated fine: I called one 
anonymous end 'wouter' and one 'leader' end was renamed to 'leaderUser'.



I thought you said your model did not contain any duplicate association ends 
(which is illegal in UML) and was yielding 18 validation errors ?



anyway, this fixes it



-- Wouter



ps: I'm using 3.1-M1-SNAPSHOT (3.1-M1 will be released today), I also tried 
with 3.0 (since I noticed you're using that version) and it works too, only 
much slower: code generation with 3.0 took 26secs, while with 3.1 it took only 
11secs (we added a lot of performance improvements to 3.1)
--
Wouter Zoons - [EMAIL PROTECTED]

http://www.andromda.org/
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1453#1453
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to