[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] [Teneo] Ignoring annotation defining @Column name =

Hi,

I want a self referential 0..1 relationship. So have the element defined like this

<xsd:complexType name="InstrumentDomain">
<xsd:sequence>
<xsd:element ecore:opposite="instrumentDomain" minOccurs="0" maxOccurs="1" name="underlyingInstrument" type="gensec:InstrumentDomain" >
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Column(name=underlyinginstrument)</xsd:appinfo>
</xsd:annotation>
</xsd:element>
....
</xsd:sequence>
<xsd:attribute name="id" type="xsd:int">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">
@Id @GeneratedValue(strategy=IDENTITY)
</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
....
</xsd:complexType>
<xsd:element name="instrumentDomain" type="gensec:InstrumentDomain" />



What I get is a column name INSTRUMENTDOMAIN as the foreign key, not underlyinginstrument as I expected. Anything else I need to do to force the name I need?


Thx.

David