Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Unexpected repeated column error
[Teneo] Unexpected repeated column error [message #618036] Tue, 13 May 2008 22:36
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member

I am getting and error I cannot see an obvious cause for .

Based on the ecore generated from this

<xsd:complexType name="StatusChangeSubclass">
<xsd:element minOccurs="0" maxOccurs="1" ref="gensec:meetingType" />
<xsd:element minOccurs="0" maxOccurs="1" ref="gensec:agent" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:caeLifecycleType" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:caeStatusType" />
<xsd:element ref="gensec:caeType" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:entityIdentifier" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:indicatorsType" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:instrumentIdentifier" />
<xsd:element minOccurs="0" maxOccurs="1" ref="gensec:issuerRef" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:dataValueChange" />
<xsd:element minOccurs="0" maxOccurs="1" ref="gensec:source" />
<xsd:element minOccurs="0" maxOccurs="1" ref="gensec:relatedTo" />
<xsd:attribute name="id" type="xsd:int" use="optional" />
<xsd:attribute name="effectiveDate" type="xsd:dateTime"
use="optional" />
<xsd:attribute name="announcementDate" type="xsd:dateTime"
use="optional" />
<xsd:attribute name="meetingDate" type="xsd:dateTime" use="optional" />
<xsd:attribute name="recordDate" type="xsd:dateTime" use="optional" />
<xsd:attribute name="comment" type="xsd:string" use="optional" />
<xsd:attribute name="documentURL" type="xsd:anyURI" use="optional" />
<xsd:attribute name="caeIdentifier" type="xsd:string" use="optional" />
<xsd:attribute name="eventDescription" type="xsd:string"
use="optional" />
<xsd:attribute name="caeDate" type="xsd:dateTime" use="optional" />

I am using

props.setProperty(PersistenceOptions.MAXIMUM_SQL_NAME_LENGTH ,

props.setProperty(PersistenceOptions.JOIN_COLUMN_NAMING_STRA TEGY, "simple");
props.setProperty(PersistenceOptions.ID_COLUMN_NAME, "id");
props.setProperty(PersistenceOptions.ID_FEATURE_AS_PRIMARY_K EY,
props.setProperty(PersistenceOptions.ALSO_MAP_AS_CLASS, "false");

props.setProperty(PersistenceOptions.DISABLE_ECONTAINER_MAPP ING, "true");
props.setProperty(PersistenceOptions.ALWAYS_VERSION, "false");

The ID_COLUMN_NAME option I read as meaning it recognises the model
attribute with the name of "id" as the primary key

There is only one id attribute, also in the ecore, so how come I get the
following error?

I use Eclise 3.3, JDK 5 and Teneo from the 23rd April

Exception in thread "main" org.hibernate.MappingException: Repeated
column in mapping for entity: StatusChangeSubclass column: id (should be
mapped with insert="false" update="false")
org.hibernate.mapping.PersistentClass.checkColumnDuplication (
org.hibernate.mapping.PersistentClass.checkPropertyColumnDup lication(


Previous Topic:[CDO 0.8.0M7] server problem
Next Topic:[CDO 0.8.0 M7] problem retreiving collection
Goto Forum:

Current Time: Wed Apr 01 12:50:45 GMT 2020

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

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

Back to the top