Problem with link [message #232973] |
Mon, 08 June 2009 14:35 |
Serena Messages: 2 Registered: July 2009 |
Junior Member |
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03760 seconds