Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » AttributeOverride of Parent's Component
AttributeOverride of Parent's Component [message #619213] Fri, 06 June 2008 23:50
Alex Black is currently offline Alex BlackFriend
Messages: 15
Registered: July 2009
Junior Member
A co-worked of mine has the following situation:
He has a base class (LensBase) with a Component (DatePeriod). He then
derives from this base class (Lens) and wants to use AttributeOverride the
database mapping for the parent class's component. That is, Lens wants to
over-ride the database mapping for LensBase.effectiveDatePeriod:

<xsd:complexType name="DatePeriod">
<xsd:annotation><xsd:appinfo source="teneo.jpa">@MappedSuperclass
<!-- Primitive Data Fields -->
<xsd:attribute name="start" type="xsd:date" use="required" />
<xsd:attribute name="end" type="xsd:date" use="required" />

<xsd:complexType name="LensBase">
<xsd:appinfo source="teneo.jpa">
<xsd:element name="effectiveDatePeriod"
type="DatePeriod" minOccurs="0">
<xsd:appinfo source="teneo.jpa">


<xsd:complexType name="Lens">
<xsd:appinfo source="teneo.jpa">
@Table( name="CSA4521T" )
@AttributeOverride(name="effectiveDatePeriod.start", column =
@AttributeOverride(name="effectiveDatePeriod.end", column =
@AttributeOverride(name="displayOrder", column =
@Column(name="DISPLAY_SORT_NBR")) })
Lens Style Information
<xsd:extension base="LensBase">

This doesn't work, it errors out with the name of the default hibernate
generated columns instead of the mapped ones.

Any ideas? Are we on the right track here?


Previous Topic:[EMF Compare] reference lists seem to be handled differently than containment lists
Next Topic:AttributeOverride of Parent's Component
Goto Forum:

Current Time: Mon Apr 06 02:59:46 GMT 2020

Powered by FUDForum. Page generated in 0.01565 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top