From: Trudy C. (A. F. <fo...@an...> - 2005-11-07 22:48:47
|
Thomas I'm having difficulty getting beyond a single entity. All I've done is try to create an <<entity>> according the first page of the Spring cartridge docs. I hope it's not bad form to dump code into this discussion, but here goes...<?xml version = '1.0' encoding = 'UTF-8' ?> <XMI xmi.version = '1.2' xmlns:UML = 'org.omg.xmi.namespace.UML' timestamp = 'Mon Nov 07 17:19:22 GMT-05:00 2005'> <XMI.header> <XMI.documentation> <XMI.exporter>Netbeans XMI Writer</XMI.exporter> <XMI.exporterVersion>1.0</XMI.exporterVersion> </XMI.documentation> </XMI.header> <XMI.content> <UML:Model xmi.id = '.:0000000000000BCE' name = 'springattempt' isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false'> <UML:Namespace.ownedElement> <UML:Package xmi.id = '.:0000000000000BCF' name = 'org' isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false'> <UML:Namespace.ownedElement> <UML:Package xmi.id = '.:0000000000000BD0' name = 'andromda' isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false'> <UML:Namespace.ownedElement> <UML:Package xmi.id = '.:0000000000000BD1' name = 'test' isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false'> <UML:Namespace.ownedElement> <UML:Class xmi.id = '.:0000000000000BD3' name = 'Car' visibility = 'public' isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false' isActive = 'false'> <UML:ModelElement.stereotype> <UML:Stereotype xmi.idref = '.:0000000000000BD7'/> </UML:ModelElement.stereotype> </UML:Class> </UML:Namespace.ownedElement> </UML:Package> </UML:Namespace.ownedElement> </UML:Package> </UML:Namespace.ownedElement> </UML:Package> <UML:Package xmi.id = '.:0000000000000BD5' name = 'org.andromda.profile' isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false'> <UML:Namespace.ownedElement> <UML:Package xmi.id = '.:0000000000000BD6' name = 'persistence' isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false'> <UML:Namespace.ownedElement> <UML:Stereotype xmi.id = '.:0000000000000BD7' name = 'Entity' isSpecification = 'false' isRoot = 'false' isLeaf = 'false' isAbstract = 'false'> <UML:Stereotype.baseClass>Class</UML:Stereotype.baseClass> </UML:Stereotype> </UML:Namespace.ownedElement> </UML:Package> </UML:Namespace.ownedElement> </UML:Package> </UML:Namespace.ownedElement> </UML:Model> </XMI.content> </XMI>But running andromda I get the error ...ERROR [AndroMDA] 1) [springattempt::org::andromda::test::Car]: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). ERROR [AndroMDA] 2) [springattempt::org::andromda::test::Car]:All attributes of an entity (other than enumerations and embedded values) must be of UML DataType. ERROR [AndroMDA] 3) [springattempt::org::andromda::test::Car::id]:Each attribute needs a type, you cannot leave the type unspecified. org.andromda.core.ModelValidationException: Model validation failed! at org.andromda.core.engine.ModelProcessor.printValidationMessages(ModelProcessor.java:413) at org.andromda.core.engine.ModelProcessor.validateModel(ModelProcessor.java:356) at org.andromda.core.engine.ModelProcessor.loadModelIfNecessary(ModelProcessor.java:324)A possible motive is that I am working with andromda-profile-3.1-M1.xml. I tried to use andromda-profile-3.1-RC1.xml but couldn't figure out how to get ArgoUML to load all the secondary xml.zip files to which it refers. -- Regards, Hasan _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=6687#6687 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! |