Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Tenco] library editor tutorial
[Tenco] library editor tutorial [message #130327] Mon, 20 October 2008 16:27 Go to next message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
I've been attempting the library editor tutorial and during the
hbds.initialize() called an org.hibernate.MappingException
is thrown with the message "Could not determine type for:
org.eclipse.emf.teneo.hibernate.mapping.ENumUserType, for columns:
[org.hibernate.mapping.Column(category)]". This appears to be
related to the attribute of book with an enum datatype. What is the
correct way to handle Ecore enums in Teneo?

thanks
Andy.

--
-- ------------------------------------------------------------ -------------
Dr Andy Carpenter
School of Computer Science,
University of Manchester, Manchester M13 9PL, UK
Email: Andy.Carpenter@manchester.ac.uk
Tel: +44 161 275 6168
Fax: +44 161 275 6280
Re: [Tenco] library editor tutorial [message #130339 is a reply to message #130327] Mon, 20 October 2008 18:37 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Andy,
My experience with this particular exception is that the underlying exception (hidden by Hibernate)
is a classnotfoundexception. Hibernate is not able to create an instance of the ENumUserType class.
Assuming that you put the hibernate libraries in a separate plugin, did you set the
eclipse-buddypolicy of this plugin to dependent?

Teneo is now supported on the main EMF newsgroup which I cc-ed on the post.

gr. Martin

Andy Carpenter wrote:
> I've been attempting the library editor tutorial and during the
> hbds.initialize() called an org.hibernate.MappingException
> is thrown with the message "Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.ENumUserType, for columns:
> [org.hibernate.mapping.Column(category)]". This appears to be
> related to the attribute of book with an enum datatype. What is the
> correct way to handle Ecore enums in Teneo?
>
> thanks
> Andy.
>


--

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: [Tenco] library editor tutorial [message #620361 is a reply to message #130327] Mon, 20 October 2008 18:37 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Andy,
My experience with this particular exception is that the underlying exception (hidden by Hibernate)
is a classnotfoundexception. Hibernate is not able to create an instance of the ENumUserType class.
Assuming that you put the hibernate libraries in a separate plugin, did you set the
eclipse-buddypolicy of this plugin to dependent?

Teneo is now supported on the main EMF newsgroup which I cc-ed on the post.

gr. Martin

Andy Carpenter wrote:
> I've been attempting the library editor tutorial and during the
> hbds.initialize() called an org.hibernate.MappingException
> is thrown with the message "Could not determine type for:
> org.eclipse.emf.teneo.hibernate.mapping.ENumUserType, for columns:
> [org.hibernate.mapping.Column(category)]". This appears to be
> related to the attribute of book with an enum datatype. What is the
> correct way to handle Ecore enums in Teneo?
>
> thanks
> Andy.
>


--

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:[Tenco] library editor tutorial
Next Topic:Integrate EMF Compare in Subversion
Goto Forum:
  


Current Time: Sat Sep 21 02:54:44 GMT 2024

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

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

Back to the top