Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314724 - Exception adding dynamic objects to Hibernate resource
Summary: Exception adding dynamic objects to Hibernate resource
Status: RESOLVED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Teneo (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Taal CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-27 13:12 EDT by Aleksander Bandelj CLA
Modified: 2010-05-27 14:53 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksander Bandelj CLA 2010-05-27 13:12:00 EDT
Build Identifier: I20100520-1744

Dynamic objects work fine until I try add them to
hibernate resource contents. Then:

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(BasicPropertyAccessor.java:306)
    at
org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:299)
    at org.hibernate.mapping.Property.getGetter(Property.java:294)
    at org.eclipse.emf.teneo.hibernate.HbUtil.idToString(HbUtil.java:86)
    at
org.eclipse.emf.teneo.hibernate.resource.HibernateResource.getURIFragment(HibernateResource.java:277)
    at
org.eclipse.emf.teneo.resource.StoreResource.attachedHelper(StoreResource.java:778)
    at
org.eclipse.emf.teneo.resource.StoreResource.attached(StoreResource.java:684)
    at
org.eclipse.emf.teneo.resource.StoreResource.setEResource(StoreResource.java:846)
    at
org.eclipse.emf.teneo.resource.StoreResource.addToContent(StoreResource.java:326)
    at
org.eclipse.emf.teneo.resource.StoreResource.load(StoreResource.java:306)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
    ... 36 more 

Reproducible: Always
Comment 1 Martin Taal CLA 2010-05-27 14:53:59 EDT
I published a teneo build 5 mins back which should solve this issue. The build is available on this update site:
http://download.eclipse.org/modeling/emf/teneo/updates/1.2.0/interim/

Please re-open the bugzilla if you still encounter an issue.

gr. Martin