Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Adding dynamic objects to resource
[Teneo] Adding dynamic objects to resource [message #536192] Thu, 27 May 2010 06:37 Go to next message
Aleksander Bandelj is currently offline Aleksander Bandelj
Messages: 98
Registered: July 2009
Member
Latest Teneo HEAD: dynamic objects work fine until I try add them to
hibernate resource contents. Should this work, is there a test case for
such scenario ?

Caused by: org.hibernate.PropertyNotFoundException: Could not find a
getter for id in class org.eclipse.emf.ecore.impl.DynamicEObjectImpl
at
org.hibernate.property.BasicPropertyAccessor.createGetter(Ba sicPropertyAccessor.java:306)
at
org.hibernate.property.BasicPropertyAccessor.getGetter(Basic PropertyAccessor.java:299)
at org.hibernate.mapping.Property.getGetter(Property.java:294)
at org.eclipse.emf.teneo.hibernate.HbUtil.idToString(HbUtil.jav a:86)
at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.g etURIFragment(HibernateResource.java:277)
at
org.eclipse.emf.teneo.resource.StoreResource.attachedHelper( StoreResource.java:778)
at
org.eclipse.emf.teneo.resource.StoreResource.attached(StoreR esource.java:684)
at
org.eclipse.emf.teneo.resource.StoreResource.setEResource(St oreResource.java:846)
at
org.eclipse.emf.teneo.resource.StoreResource.addToContent(St oreResource.java:326)
at
org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:306)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
... 36 more
Re: [Teneo] Adding dynamic objects to resource [message #536226 is a reply to message #536192] Thu, 27 May 2010 08:38 Go to previous message
Martin Taal is currently offline Martin Taal
Messages: 5326
Registered: July 2009
Senior Member
Hi Aleksander,
Can you enter a bugzilla for this one?

I could reproduce it and am solving it. Will be in the next build.

gr. Martin

Aleksander Bandelj wrote:
> Latest Teneo HEAD: dynamic objects work fine until I try add them to
> hibernate resource contents. Should this work, is there a test case for
> such scenario ?
>
> Caused by: org.hibernate.PropertyNotFoundException: Could not find a
> getter for id in class org.eclipse.emf.ecore.impl.DynamicEObjectImpl
> at
> org.hibernate.property.BasicPropertyAccessor.createGetter(Ba sicPropertyAccessor.java:306)
> at
> org.hibernate.property.BasicPropertyAccessor.getGetter(Basic PropertyAccessor.java:299)
> at org.hibernate.mapping.Property.getGetter(Property.java:294)
> at org.eclipse.emf.teneo.hibernate.HbUtil.idToString(HbUtil.jav a:86)
> at
> org.eclipse.emf.teneo.hibernate.resource.HibernateResource.g etURIFragment(HibernateResource.java:277)
> at
> org.eclipse.emf.teneo.resource.StoreResource.attachedHelper( StoreResource.java:778)
> at
> org.eclipse.emf.teneo.resource.StoreResource.attached(StoreR esource.java:684)
> at
> org.eclipse.emf.teneo.resource.StoreResource.setEResource(St oreResource.java:846)
> at
> org.eclipse.emf.teneo.resource.StoreResource.addToContent(St oreResource.java:326)
> at
> org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:306)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
> ... 36 more
>


--

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:[Teneo] Problem storing byte[]
Next Topic:[CDO] Saving elements on database
Goto Forum:
  


Current Time: Sat Aug 02 04:37:02 EDT 2014

Powered by FUDForum. Page generated in 0.02159 seconds