Further to the other comments added previously I have now run the same XMI though the hibernate cartridge and also get errors caused by attributes not having types even though the type is specified. The log is at the end of this entry. As I understand it changing the mappings file will change how the UML datatypes are mapped into the target language, not whether AndroMDA recognises the types are not. Consequently there seems to be a fundamental problem with the XMI that Enterprise Architect produces. It would be helpful to know if this is the case.
Thanks Roger 2005-07-01 13:44:24,648 INFO [AndroMDA] 2005-07-01 13:44:24,648 INFO [AndroMDA] A n d r o M D A - 3.0 2005-07-01 13:44:24,648 INFO [AndroMDA] 2005-07-01 13:44:28,033 INFO [AndroMDA] Input model --> 'file:E:/Users/Roger/Computing/andromdatest/mda/src/uml/AndromdaTestModel.xmi' 2005-07-01 13:44:28,143 INFO [AndroMDA] -- discovering plugins -- 2005-07-01 13:44:28,554 INFO [AndroMDA] found translation-library --> 'validation' 2005-07-01 13:44:28,584 INFO [AndroMDA] found translation-library --> 'query' 2005-07-01 13:44:28,885 INFO [AndroMDA] found cartridge --> 'spring' 2005-07-01 13:44:28,935 INFO [AndroMDA] found cartridge --> 'hibernate' 2005-07-01 13:44:28,955 INFO [AndroMDA] found cartridge --> 'java' 2005-07-01 13:44:29,035 INFO [AndroMDA] found cartridge --> 'bpm4struts' 2005-07-01 13:44:29,045 INFO [AndroMDA] -- discovering metafacades -- 2005-07-01 13:44:29,345 INFO [AndroMDA] found shared metafacades --> 'uml-1.4' - adding to 'default' namespace 2005-07-01 13:44:29,726 INFO [AndroMDA] found metafacades --> 'spring' 2005-07-01 13:44:29,856 INFO [AndroMDA] found metafacades --> 'hibernate' 2005-07-01 13:44:30,116 INFO [AndroMDA] found metafacades --> 'bpm4struts' 2005-07-01 13:44:34,803 ERROR [org.andromda.core.ModelProcessor] Error performing ModelProcessor.process with model(s) --> 'file:E:/Users/Roger/Computing/andromdatest/mda/src/uml/AndromdaTestModel.xmi' 2005-07-01 13:44:34,823 ERROR [AndroMDA] Exception recorded in --> 'E:UsersRogerComputingandromdatesthibernate050701134434.exc' 2005-07-01 13:44:34,963 ERROR [AndroMDA:VALIDATION:ERROR] 1) [Logical Model::Class1]:All attributes of an entity (other than enumerations and embedded values) must be of UML DataType. 2005-07-01 13:44:34,993 ERROR [AndroMDA:VALIDATION:ERROR] 2) [Logical Model::Class1]:If the hibernate identifier generator class is set as 'increment', 'identity', 'sequence', 'hilo', 'seqhilo' or 'native', your mapped identifier type must resolve to a long (long or java.lang.Long) , an int (int or java.lang.Integer), or a short (short or java.lang.Short). 2005-07-01 13:44:34,993 ERROR [AndroMDA:VALIDATION:ERROR] 3) [Logical Model::Class1::id]:Each attribute needs a type, you cannot leave the type unspecified. 2005-07-01 13:44:34,993 INFO [AndroMDA] completed model processing --> TIME: 10.345[s], RESOURCES WRITTEN: 0 - 3 VALIDATION ERROR(S) 2005-07-01 13:44:35,294 INFO [org.apache.maven.cli.App] Total time: 20 seconds 2005-07-01 13:44:35,294 INFO [org.apache.maven.cli.App] Finished at: Fri Jul 01 13:44:35 BST 2005 2005-07-01 13:44:35,294 INFO [org.apache.maven.cli.App] _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2017#2017 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