[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
] [
Newsgroup Home
]
[news.eclipse.tools.emf] [Teneo] Ignoring annotation defining @Column name =
From
: David Wynter <
david@xxxxxxxxxxxxxx
>
Date
: Tue, 14 Oct 2008 10:37:00 +0100
Newsgroups
:
eclipse.tools.emf
Organization
: Roamware
User-agent
: Thunderbird 2.0.0.17 (Windows/20080914)
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
Follow-Ups
:
[news.eclipse.tools.emf] Re: [Teneo] Ignoring annotation defining @Column name =
From:
Martin Taal
Prev by Date:
[news.eclipse.tools.emf] [CDO] Deadlock in LRU cache?
Next by Date:
[news.eclipse.tools.emf] Re: [CDO] Deadlock in LRU cache?
Previous by thread:
[news.eclipse.tools.emf] [CDO] Deadlock in LRU cache?
Next by thread:
[news.eclipse.tools.emf] Re: [Teneo] Ignoring annotation defining @Column name =
Index(es):
Date
Thread