MappingException when initializing the hbDataStore [message #427300] |
Wed, 11 February 2009 14:42 |
Christophe Bouhier Messages: 937 Registered: July 2009 |
Senior Member |
|
|
Hello,
I had a perfectly working Teneo/Hibernate environment which now
generates a MappingException when initializing.
Here is the message in the exception:
"Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
at table: status, for
columns:[org.hibernate.mapping.Column(econtainer_class),
org.hibernate.mapping.Column(e_container)]"
it fails in when calling "buildSessionFactory()"
What could be the root of this problem?, my code didn't change,
but the following happened:
- I messed around with plugin dependencies, not sure all is "seen"
nowadays. Should I do some buddy policies? (My Hibernate jars and
needed auxiliary jars are in a separate plugin.
- The model could have changed, causing the problem? (I write "could" as
I likely did't change it, but who knows...).
Thanks for the help!
rgds Christophe
|
|
|
Re: MappingException when initializing the hbDataStore [message #427301 is a reply to message #427300] |
Wed, 11 February 2009 14:50 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Christophe,
Yes this is probably related to a classpath issue, hibernate throws this exception if it can't find the a class which
implements a type (in this case EContainerUserType). So I would check there.
The plugin containing the hibernate jars should have the eclipse buddypolicy set to dependent.
gr. Martin
Christophe Bouhier wrote:
> Hello,
>
> I had a perfectly working Teneo/Hibernate environment which now
> generates a MappingException when initializing.
>
>
> Here is the message in the exception:
>
>
> "Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.econtainer.EContaine rUserType,
> at table: status, for
> columns:[org.hibernate.mapping.Column(econtainer_class),
> org.hibernate.mapping.Column(e_container)]"
>
>
> it fails in when calling "buildSessionFactory()"
>
> What could be the root of this problem?, my code didn't change,
> but the following happened:
>
> - I messed around with plugin dependencies, not sure all is "seen"
> nowadays. Should I do some buddy policies? (My Hibernate jars and
> needed auxiliary jars are in a separate plugin.
>
> - The model could have changed, causing the problem? (I write "could" as
> I likely did't change it, but who knows...).
>
> Thanks for the help!
>
> rgds Christophe
--
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04033 seconds