My ecore model has reference to an interface, which is implemented by two concrete objects. Here are parts of model in question:
<eClassifiers xsi:type="ecore:EClass" name="Zoo">
<eStructuralFeatures xsi:type="ecore:EReference" name="animal" upperBound="-1"
eType="#//Animal" containment="true"/>
</eClassifiers>
...
...
<eClassifiers xsi:type="ecore:EClass" name="Lion" eSuperTypes="#//Animal"/>
<eClassifiers xsi:type="ecore:EClass" name="Monkey" eSuperTypes="#//Animal">
When I add a Lion to my model: Zoo.getAnimal().add(Lion) and Zoo.getAnimal().add(Monkey) the model is serialized as follows:
<bdi:Zoo>
<animal xsi:type="bdi:Lion"/>
<animal xsi:type="bdi:Monkey"/>
</bdi:Zoo>
Is it possible to persist model so that I don't get type generated for animal element, but instead concrete type is serialized:
<bdi:Zoo>
<Lion/>
<Monkey/>
</bdi:Zoo>
Thanks,
Alex