[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Problem with link

Hello.

I use a XML Schema to generate the EMF model, and then generate a GMF Editior.
I defined a Relation between tables in XML Schema like this:
<xsd:complexType name="Relation">
<xsd:sequence>
<xsd:element ecore:reference="Table" name="source" type="Table"/>
<xsd:element ecore:reference="Table" name="target" type="Table"/>
</xsd:sequence>
</xsd:complexType>
when I create a relation between "tablea" and "tableb"in Editor, the persistence format like this:
<relation>
<source>tablea</source>
<target>tableb</target>
</relation>
I want to add some extra properties under <source> and <target>, it may like this:
<relation>
<source>
<name>tablea</name> </source>
<target>
<name>tableb</name>
<many>true</many>
</target>
</relation>


How do I do that?

 Thanks
 Serena