Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » org.eclipse.emf.teneo.hibernate: invalid mapping
org.eclipse.emf.teneo.hibernate: invalid mapping [message #127137] Mon, 14 July 2008 09:36 Go to next message
Eclipse UserFriend
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">
...
Re: org.eclipse.emf.teneo.hibernate: invalid mapping [message #127154 is a reply to message #127137] Tue, 15 July 2008 06:56 Go to previous message
Eclipse UserFriend
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
Re: org.eclipse.emf.teneo.hibernate: invalid mapping [message #620115 is a reply to message #127137] Tue, 15 July 2008 06:56 Go to previous message
Eclipse UserFriend
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:org.eclipse.emf.teneo.hibernate: invalid mapping
Next Topic:Re: EMF Compare -- Compare two model instances
Goto Forum:
  


Current Time: Sun Jul 27 06:17:34 EDT 2025

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

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

Back to the top