Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Re: org.eclipse.emf.teneo.hibernate: invalid mapping
Re: org.eclipse.emf.teneo.hibernate: invalid mapping [message #420867] Tue, 15 July 2008 10:56
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Alexey,
Can you post the complete subclass part? It goes wrong somewhere inside.
I also crossposted to the emf newsgroup as this is the place where support is given for Teneo (since
the Eclipse 3.4 release).

gr. Martin

Alexey Dubrovskiy wrote:
> Hello!
>
> I have a problem to initialize my HbDataStore from an EPackage:
>
> Exception:
> 15:14:23 ERROR org.hibernate.util.XMLHelper ==> Error parsing XML: XML
> String(1809) 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)*) ".
>
> org.hibernate.MappingException: invalid mapping
> at org.hibernate.cfg.Configuration.addXML(Configuration.java:38 2)
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.mapModel( HbSessionDataStore.java:156)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:73)
>
>
> XML cutting:
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD
> 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
> ...
> <subclass name="test.ServerPublisher" entity-name="ServerPublisher"
> abstract="true" lazy="false" extends="MessageReceiver"
> discriminator-value="ServerPublisher">
> ...
>
>


--

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@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:Setting a reference feature consider referenced model affected (Transactionnal)
Next Topic:EReference Overloading and genmodel
Goto Forum:
  


Current Time: Wed Sep 25 06:08:01 GMT 2024

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

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

Back to the top