Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate interdependent models #5

Open
ToDo1989 opened this issue Apr 30, 2020 · 1 comment
Open

Generate interdependent models #5

ToDo1989 opened this issue Apr 30, 2020 · 1 comment
Labels
bug Something isn't working typescript

Comments

@ToDo1989
Copy link

I have this 2 Ecore models:

Util.ecore
<?xml version="1.0" encoding="UTF-8"?> <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="util" nsURI="http://test/util" nsPrefix="util"> <eClassifiers xsi:type="ecore:EClass" name="ObjectDef" eSuperTypes="Ecore.ecore#//EModelElement"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="id" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="Person" eSuperTypes="#//ObjectDef"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="firstname" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EAttribute" name="lastname" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> </eClassifiers> </ecore:EPackage>

Vehicle.ecore
<?xml version="1.0" encoding="UTF-8"?> <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="vehicle" nsURI="http://test/vehicle" nsPrefix="vehicle"> <eClassifiers xsi:type="ecore:EClass" name="Car" eSuperTypes="Util.ecore#//ObjectDef"> <eStructuralFeatures xsi:type="ecore:EAttribute" name="brand" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/> <eStructuralFeatures xsi:type="ecore:EReference" name="owner" eType="ecore:EClass Util.ecore#//Person"/> </eClassifiers> <eClassifiers xsi:type="ecore:EClass" name="Bike" eSuperTypes="Util.ecore#//ObjectDef"/> </ecore:EPackage>

Problem:

I want to generate the typescript classes for the "Util.ecore" model in a "util" directory and for the "Vehicle.ecore" model in a "vehicle" directory.
When I generate the Vehicle.ecore model, the "..Impl" and "..Base" classes for ObjectDef (Util.ecore model) are generated.
The same, if I generate the Util.ecore model. The ..Impl and ..Base classes for EModelElement (Ecore.ecore model) are generated.

@schwichti schwichti added bug Something isn't working typescript labels May 1, 2020
@schwichti
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working typescript
Projects
None yet
Development

No branches or pull requests

2 participants