Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Invalid subclass tag in hibernate mapping file .
[Teneo] Invalid subclass tag in hibernate mapping file . [message #603310] Thu, 08 March 2007 17:33
Duncan Alexander is currently offline Duncan AlexanderFriend
Messages: 90
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------060605040602010802090609
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,
im having an issue with my hibernate mapping file as generated by
teneo. The issue seems to be an <id> and <version> tags which have been
inserted below a <subclass> tag. I don't believe this is allowed and Im
getting an error when attempting to use the config file of the form:


org.hibernate.InvalidMappingException: Could not parse mapping document
from resource hibernate_sdmx_config.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.ja va:569)
at etc etc etc.
... 31 more
Caused by: org.xml.sax.SAXParseException: The content of element type
"subclass" must match
" (meta*,tuplizer*,synchronize*,(property|many-to-one|one-to-o ne|component|dynamic-component|any|map|set|list|bag|idbag|ar ray|primitive-array)*,join*,subclass*,loader?,sql-insert?,sq l-update?,sql-delete?,resultset*,(query|sql-query)*) ".
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper. createSAXParseException(ErrorHandlerWrapper.java:236)
.... etc etc etc

The section in question is attached.


My current setup is: Teneo 0.75, EMF2.2, Hibernate 3.2

Any help greatly appreciated.

Duncan

--------------060605040602010802090609
Content-Type: text/plain;
name="snippit.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="snippit.txt"

<subclass entity-name="Identifiable" abstract="true" lazy="false" extends="Annotable" discriminator-value="Identifiable">
<meta attribute="eclassName">Identifiable</meta>
<meta attribute="epackage">http://www.sdmx.org/resources/infomodel/1.0/base.xmi</meta>
<id name="urn" type="java.lang.String">
<column not-null="true" unique="false" name="`urn`"/>
</id>
<version name="e_version" column="e_version" access=" org.eclipse.emf.teneo.hibernate.mapping.property.VersionProp ertyHandler ">
<meta attribute="syntheticVersion">true</meta>
</version>
<property name="id" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`id`"/>
</property>
<property name="uri" lazy="false" insert="true" update="true" not-null="false" unique="false" type="java.lang.String">
<column not-null="false" unique="false" name="`uri`"/>
</property>
<many-to-one name="Name" entity-name="InternationalString" cascade="all" lazy="false" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`internationalstring_name_e_id`"/>
</many-to-one>
<many-to-one name="Description" entity-name="InternationalString" cascade="all" lazy="false" insert="true" update="true" not-null="false">
<column not-null="false" unique="false" name="`internationalstring_description_e_id`"/>
</many-to-one>
</subclass>
--------------060605040602010802090609--
Previous Topic:Missing model element when generating Teneo hibernate mapping
Next Topic:Teneo plan to support java5 annotations instead of EMF?
Goto Forum:
  


Current Time: Thu Apr 25 12:05:11 GMT 2024

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

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

Back to the top