[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: Use @AttributeOverride to make attribute @Transient
|
- From: Martin Taal <mtaal@xxxxxxxxx>
- Date: Thu, 17 Sep 2009 23:00:26 +0200
- Newsgroups: eclipse.tools.emf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Greetings Tim!
This is not possible I am afraid. I can add something like this to the 1.1.1 build of Teneo but I am kind of reluctant
to add new features to the 1.0.4 version (real hurting bugs will still be solved in that build). So the only thing I can
propose is either move over to 1.1.1 or possibly sponsor the development of new features in the 1.0.4 stream.
I hope you understand given that I (and many others in the EMF team) are not getting paid for our open source work, at
least not directly.
gr. Martin
Tim Barthel wrote:
Greetings,
We have a shared object model, in some instances an object is embedded
and others it is referenced. In the embedded case, some of the fields
will not be mapped to the database. I would like to do something like this:
<xsd:element name="examCoPay" type="com.vsp.product.model:Copay" >
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">
@Embedded
@AttributeOverrides({
@AttributeOverride(name="amount",
column=@Column(name="CO_PAY_1_AMT")),
@AttributeOverride(name="appliedTo", @Transient),
@AttributeOverride(name="applyToDeductibleInd",
@Transient),
@AttributeOverride(name="copayFrequency", @Transient),
@AttributeOverride(name="copayType", @Transient),
@AttributeOverride(name="waiverRule", @Transient)
})
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
Is there some other way to do this? I am using Teneo 1.0.1
v200809150739, EMF 2.4.0.v200808251517, and eclipse 3.4.2.R342. Thanks.
Tim
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxxxxxxxx - mtaal@xxxxxxxxx
Web: www.springsite.com - www.elver.org