XMI com Enterprise Architect não gera banco corretamente Alguém aqui utiliza o Enterprise Architect para gerar os arquivos XMI? Já fiz tudo quanto é tipo de configuração e sempre apresenta um desses dois erros: ou... NÃO reconhece o tipo de dado das classes. ou... NÃO reconhece as agregações. Uso o EA 9.0 gerando em XMI 1.2...
FF
XMI com Enterprise Architect não gera banco corretamente  
Alguém aqui utiliza o Enterprise Architect para gerar os arquivos XMI?

Já fiz tudo quanto é tipo de configuração e sempre apresenta um desses dois erros:

ou... NÃO reconhece o tipo de dado das classes.
ou... NÃO reconhece as agregações.

Uso o EA 9.0 gerando em XMI 1.2

Curso Dominando o Adianti Framework

O material mais completo de treinamento do Framework.
Curso em vídeo aulas + Livro completo + Códigos fontes do projeto ERPHouse.
Conteúdo Atualizado!


Dominando o Adianti Framework Quero me inscrever agora!

Comentários (8)


PM

Boa noite eu usei este argouml.tigris.org/ e gerou tanto as classes modelo como o script de criação do banco e roda no linux.
FF

Poxa Paulo... o ArgoUML é terrivelmente ruim.
PM

Bom dia Fernando, como uso o Ubuntu, não tenho tantas opções como no windows, então testei o STAR UML que achei interessante, porém não funcionou na importação para o adianti, depois tem o astha e o argo, o argo é free e me atendeu, mas se você usar o windows deve ter bem mais ferramentas que você pode testar com o adianti studio pro.
FF

Paulo, eu testei o StarUML e a importação funcionou ok (SQL e Models em todas as variações de associações). Te aconselho a testar um pouco mais para ver onde está o problema.

Inclusive eu testei o XMI usado pelo StarUML para compreender o que tinha de errado com o XMI gerado pelo Enterprise Architect (já que não encontrei a documentação do XMI versão 1.1). E deixo registrado aqui para quem precisar futuramente da informação.

Gere o XMI no EA na versão UML 1.3 XMI 1.1. Depois faça um replace no XMI gerado trocando:

aggregation="shared"

por

aggregation="aggregate"

Após isso é só ser feliz.

Só não sei se esse é um problema da geração do EA ou da importação do Adianti Studio.
PM

Bom dia Fernando, tem como você me mandar um exemplo para eu comparar com o xml qiue eu gerei, inclusive coloquei o anexo do meu neste post.
https://www.adianti.com.br/forum/pt/view_3549?xmi-do-staruml-nao-esta-sendo-reco
FF

Eu apenas instalei o StarUML estudei o XMI gerado por ele e depois retirei ele. Não tenho o arquivo específico do StartUML mas ainda tenho o XMI gerado por ele... de repente você consegue importa-lo e compreender onde está o problema.

<?xml version = "1.0" encoding = "UTF-8"?>
<XMI xmi.version = "1.1" xmlns:UML="href://org.omg/UML/1.3">
<XMI.header>
<XMI.documentation>
<XMI.owner></XMI.owner>
<XMI.contact></XMI.contact>
<XMI.exporter>StarUML.XMI-Addin</XMI.exporter>
<XMI.exporterVersion>1.0</XMI.exporterVersion>
<XMI.notice></XMI.notice>
</XMI.documentation>
<XMI.metamodel xmi.name = "UML" xmi.version = "1.3"/>
</XMI.header>
<XMI.content>
<UML:Model xmi.id="UMLProject.1">
<UML:Namespace.ownedElement>
<UML:Model xmi.id="UMLModel.2" name="Classes" visibility="public" isSpecification="false" namespace="UMLProject.1" isRoot="false" isLeaf="false" isAbstract="false">
<UML:Namespace.ownedElement>
<UML:Class xmi.id="UMLClass.3" name="Filme" visibility="public" isSpecification="false" namespace="UMLModel.2" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationEnd.22 UMLAssociationEnd.25 UMLAssociationEnd.28 UMLAssociationEnd.31" isActive="false">
<UML:Classifier.feature>
<UML:Attribute xmi.id="UMLAttribute.4" name="nome" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.34" owner="UMLClass.3"/>
<UML:Attribute xmi.id="UMLAttribute.5" name="duracao" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.36" owner="UMLClass.3"/>
<UML:Attribute xmi.id="UMLAttribute.6" name="dt_lcto" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.38" owner="UMLClass.3"/>
<UML:Attribute xmi.id="UMLAttribute.7" name="orcamento" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.40" owner="UMLClass.3"/>
</UML:Classifier.feature>
</UML:Class>
<UML:Class xmi.id="UMLClass.8" name="Ator" visibility="public" isSpecification="false" namespace="UMLModel.2" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationEnd.29" isActive="false">
<UML:Classifier.feature>
<UML:Attribute xmi.id="UMLAttribute.9" name="nome" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.34" owner="UMLClass.8"/>
<UML:Attribute xmi.id="UMLAttribute.10" name="nome_real" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.34" owner="UMLClass.8"/>
<UML:Attribute xmi.id="UMLAttribute.11" name="dt_nascimento" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.38" owner="UMLClass.8"/>
</UML:Classifier.feature>
</UML:Class>
<UML:Class xmi.id="UMLClass.12" name="Critica" visibility="public" isSpecification="false" namespace="UMLModel.2" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationEnd.32" isActive="false">
<UML:Classifier.feature>
<UML:Attribute xmi.id="UMLAttribute.13" name="dt_publicacao" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.38" owner="UMLClass.12"/>
<UML:Attribute xmi.id="UMLAttribute.14" name="veiculo" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.34" owner="UMLClass.12"/>
<UML:Attribute xmi.id="UMLAttribute.15" name="conteudo" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.47" owner="UMLClass.12"/>
</UML:Classifier.feature>
</UML:Class>
<UML:Class xmi.id="UMLClass.16" name="Distribuidor" visibility="public" isSpecification="false" namespace="UMLModel.2" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationEnd.23" isActive="false">
<UML:Classifier.feature>
<UML:Attribute xmi.id="UMLAttribute.17" name="nome" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.34" owner="UMLClass.16"/>
<UML:Attribute xmi.id="UMLAttribute.18" name="local" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.34" owner="UMLClass.16"/>
</UML:Classifier.feature>
</UML:Class>
<UML:Class xmi.id="UMLClass.19" name="Genero" visibility="public" isSpecification="false" namespace="UMLModel.2" isRoot="false" isLeaf="false" isAbstract="false" participant="UMLAssociationEnd.26" isActive="false">
<UML:Classifier.feature>
<UML:Attribute xmi.id="UMLAttribute.20" name="nome" visibility="private" isSpecification="false" ownerScope="instance" changeability="changeable" targetScope="instance" type="X.34" owner="UMLClass.19"/>
</UML:Classifier.feature>
</UML:Class>
<UML:Association xmi.id="UMLAssociation.21" name="" visibility="public" isSpecification="false" namespace="UMLModel.2">
<UML:Association.connection>
<UML:AssociationEnd xmi.id="UMLAssociationEnd.22" name="" visibility="public" isSpecification="false" isNavigable="false" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.21" type="UMLClass.3"/>
<UML:AssociationEnd xmi.id="UMLAssociationEnd.23" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.21" type="UMLClass.16"/>
</UML:Association.connection>
</UML:Association>
<UML:Association xmi.id="UMLAssociation.24" name="" visibility="public" isSpecification="false" namespace="UMLModel.2">
<UML:Association.connection>
<UML:AssociationEnd xmi.id="UMLAssociationEnd.25" name="" visibility="public" isSpecification="false" isNavigable="false" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.24" type="UMLClass.3"/>
<UML:AssociationEnd xmi.id="UMLAssociationEnd.26" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.24" type="UMLClass.19"/>
</UML:Association.connection>
</UML:Association>
<UML:Association xmi.id="UMLAssociation.27" name="" visibility="public" isSpecification="false" namespace="UMLModel.2">
<UML:Association.connection>
<UML:AssociationEnd xmi.id="UMLAssociationEnd.28" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.27" type="UMLClass.3"/>
<UML:AssociationEnd xmi.id="UMLAssociationEnd.29" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="aggregate" targetScope="instance" changeability="changeable" association="UMLAssociation.27" type="UMLClass.8"/>
</UML:Association.connection>
</UML:Association>
<UML:Association xmi.id="UMLAssociation.30" name="" visibility="public" isSpecification="false" namespace="UMLModel.2">
<UML:Association.connection>
<UML:AssociationEnd xmi.id="UMLAssociationEnd.31" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="none" targetScope="instance" changeability="changeable" association="UMLAssociation.30" type="UMLClass.3"/>
<UML:AssociationEnd xmi.id="UMLAssociationEnd.32" name="" visibility="public" isSpecification="false" isNavigable="true" ordering="unordered" aggregation="composite" targetScope="instance" changeability="changeable" association="UMLAssociation.30" type="UMLClass.12"/>
</UML:Association.connection>
</UML:Association>
</UML:Namespace.ownedElement>
</UML:Model>
<UML:DataType xmi.id="X.34" name="String" visibility="public" isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false"/>
<UML:DataType xmi.id="X.36" name="Integer" visibility="public" isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false"/>
<UML:DataType xmi.id="X.38" name="Date" visibility="public" isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false"/>
<UML:DataType xmi.id="X.40" name="Float" visibility="public" isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false"/>
<UML:DataType xmi.id="X.47" name="Text" visibility="public" isSpecification="false" isRoot="false" isLeaf="false" isAbstract="false"/>
</UML:Namespace.ownedElement>
</UML:Model>
<UML:TaggedValue xmi.id="X.33" tag="ordering" value="unordered" modelElement="UMLAttribute.4"/>
<UML:TaggedValue xmi.id="X.35" tag="ordering" value="unordered" modelElement="UMLAttribute.5"/>
<UML:TaggedValue xmi.id="X.37" tag="ordering" value="unordered" modelElement="UMLAttribute.6"/>
<UML:TaggedValue xmi.id="X.39" tag="ordering" value="unordered" modelElement="UMLAttribute.7"/>
<UML:TaggedValue xmi.id="X.41" tag="ordering" value="unordered" modelElement="UMLAttribute.9"/>
<UML:TaggedValue xmi.id="X.42" tag="ordering" value="unordered" modelElement="UMLAttribute.10"/>
<UML:TaggedValue xmi.id="X.43" tag="ordering" value="unordered" modelElement="UMLAttribute.11"/>
<UML:TaggedValue xmi.id="X.44" tag="ordering" value="unordered" modelElement="UMLAttribute.13"/>
<UML:TaggedValue xmi.id="X.45" tag="ordering" value="unordered" modelElement="UMLAttribute.14"/>
<UML:TaggedValue xmi.id="X.46" tag="ordering" value="unordered" modelElement="UMLAttribute.15"/>
<UML:TaggedValue xmi.id="X.48" tag="ordering" value="unordered" modelElement="UMLAttribute.17"/>
<UML:TaggedValue xmi.id="X.49" tag="ordering" value="unordered" modelElement="UMLAttribute.18"/>
<UML:TaggedValue xmi.id="X.50" tag="ordering" value="unordered" modelElement="UMLAttribute.20"/>
</XMI.content>
</XMI>
FF

Fique atento a versão do XMI... tem que ser a 1.1

Esse XMI aí de cima é baseado no exemplo FILMES do treinamento do framework. Tem 5 classes, sendo duas associações, uma agregação e uma composição.
PM

Obrigado vou checar em casa.