Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Teneo and Hibernate's Session.load() issue
Teneo and Hibernate's Session.load() issue [message #127675] Tue, 29 July 2008 15:59 Go to next message
Mikhail Kadan is currently offline Mikhail KadanFriend
Messages: 61
Registered: July 2009
Member
Hi.

I have EMF model, which defines only one class "A", without any
attrinutes. I map this to DB using Teneo/Hibernate:

...
session.beginTransaction();

A a = TestFactory.eINSTANCE.createA();
Long aId = (Long) session.save(a);

session.getTransaction().commit();
...

Ok. Then I try to load this object from DB:

A a2 = (A) session.load("A", aId);

Works fine. But I need to load objects from DB not by EMF name, but by
interface/instance name/class. Hibernate provides me with such method:

A a3 = (A) session.load(A.class, aId);

But it fails with:

org.hibernate.MappingException: Unknown entity: test.A

So I look into generated "hibernate.hbm.xml":

<class name="test.impl.AImpl" entity-name="A" ...

So what do I think? Maybe Teneo places invalid value into "entity-name"
attribute for class mapping, so I cannot load classes by interface, and
have to provide name string w/o package specification? Of cource, I can
always get this string by traversing through EPackage.Registry, but its
very perfomance damaging option.

Thanks.
Re: Teneo and Hibernate's Session.load() issue [message #127688 is a reply to message #127675] Tue, 29 July 2008 16:12 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Mikhail,
You can control the entity-name in different ways (see the documentation on www.elver.org) for more
information. Teneo uses the hibernate entity-mapping because it makes it possible to support
dynamic-emf.
From a design point of view I find it nicer to use model concepts such as the eclassname than the
java implementation names. Having said that I fully understand that there are different views on this.
If a mapping has the entity-name set then hibernate throws errors when trying to use the classname
(as you try to do).

To disable the use of the entity-name there is a hidden feature (not tested) which you can enable as
follows.

1) Create your own class which inherits from org.eclipse.emf.teneo.hibernate.mapper.MappingContext
2) Override one method: forceUseOfInstance and let it return true.
3) Then do this:
dataStore.getExtensionManager().registerExtension(MappingCon text.class.getName(),
MyGreatMappingContext.class.getName();
before calling initialize on the datastore.

If you have time can you enter a bugzilla to make this option driven? Then I can add testcases for
this also.

btw, support for Teneo is given on the EMF newsgroup to which I cross-posted.

gr. Martin

Mikhail Kadan wrote:
> Hi.
>
> I have EMF model, which defines only one class "A", without any
> attrinutes. I map this to DB using Teneo/Hibernate:
>
> ...
> session.beginTransaction();
>
> A a = TestFactory.eINSTANCE.createA();
> Long aId = (Long) session.save(a);
>
> session.getTransaction().commit();
> ...
>
> Ok. Then I try to load this object from DB:
> A a2 = (A) session.load("A", aId);
>
> Works fine. But I need to load objects from DB not by EMF name, but by
> interface/instance name/class. Hibernate provides me with such method:
>
> A a3 = (A) session.load(A.class, aId);
>
> But it fails with:
>
> org.hibernate.MappingException: Unknown entity: test.A
>
> So I look into generated "hibernate.hbm.xml":
>
> <class name="test.impl.AImpl" entity-name="A" ...
>
> So what do I think? Maybe Teneo places invalid value into "entity-name"
> attribute for class mapping, so I cannot load classes by interface, and
> have to provide name string w/o package specification? Of cource, I can
> always get this string by traversing through EPackage.Registry, but its
> very perfomance damaging option.
>
> Thanks.
>


--

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: Teneo and Hibernate's Session.load() issue [message #127728 is a reply to message #127688] Wed, 30 July 2008 08:21 Go to previous messageGo to next message
Mikhail Kadan is currently offline Mikhail KadanFriend
Messages: 61
Registered: July 2009
Member
I've tried this and I got:

org.hibernate.HibernateException: Could not build tuplizer
[org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer]
at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping .buildEntityTuplizer(EntityEntityModeToTuplizerMapping.java: 110)
at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping . <init>(EntityEntityModeToTuplizerMapping.java:48)
at
org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295)
at
org.hibernate.persister.entity.AbstractEntityPersister.<init >(AbstractEntityPersister.java:434)
at
org.hibernate.persister.entity.JoinedSubclassEntityPersister . <init>(JoinedSubclassEntityPersister.java:91)
at
org.hibernate.persister.PersisterFactory.createClassPersiste r(PersisterFactory.java:58)
at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1294)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:162)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:82)
at teneo.Application.start(Application.java:42)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping .buildEntityTuplizer(EntityEntityModeToTuplizerMapping.java: 107)
... 23 more
Caused by: java.lang.NullPointerException
at
org.eclipse.emf.teneo.util.StoreUtil.getEStructuralFeature(S toreUtil.java:360)
at
org.eclipse.emf.teneo.hibernate.HbUtil.getPropertyAccessor(H bUtil.java:123)
at
org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getProp ertyAccessor(EMFTuplizer.java:262)
at
org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.buildPr opertyGetter(EMFTuplizer.java:138)
at
org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:125)
at
org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.<init>(EMFTuplizer.java:76)
... 28 more
Re: Teneo and Hibernate's Session.load() issue [message #127741 is a reply to message #127728] Wed, 30 July 2008 08:29 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Yes an untested/hidden feature.... :-(. Can you enter a bugzilla for this? I will do a new build in
a few days (around the weekend) for this and some other open issues.

gr. Martin

Mikhail Kadan wrote:
> I've tried this and I got:
>
> org.hibernate.HibernateException: Could not build tuplizer
> [org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer]
> at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping .buildEntityTuplizer(EntityEntityModeToTuplizerMapping.java: 110)
>
> at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping . <init>(EntityEntityModeToTuplizerMapping.java:48)
>
> at
> org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295)
> at
> org.hibernate.persister.entity.AbstractEntityPersister.<init >(AbstractEntityPersister.java:434)
>
> at
> org.hibernate.persister.entity.JoinedSubclassEntityPersister . <init>(JoinedSubclassEntityPersister.java:91)
>
> at
> org.hibernate.persister.PersisterFactory.createClassPersiste r(PersisterFactory.java:58)
>
> at
> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1294)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:162)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:82)
>
> at teneo.Application.start(Application.java:42)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping .buildEntityTuplizer(EntityEntityModeToTuplizerMapping.java: 107)
>
> ... 23 more
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.teneo.util.StoreUtil.getEStructuralFeature(S toreUtil.java:360)
>
> at
> org.eclipse.emf.teneo.hibernate.HbUtil.getPropertyAccessor(H bUtil.java:123)
> at
> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getProp ertyAccessor(EMFTuplizer.java:262)
>
> at
> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.buildPr opertyGetter(EMFTuplizer.java:138)
>
> at
> org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:125)
>
> at
> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.<init>(EMFTuplizer.java:76)
>
> ... 28 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
Re: Teneo and Hibernate's Session.load() issue [message #620159 is a reply to message #127675] Tue, 29 July 2008 16:12 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Mikhail,
You can control the entity-name in different ways (see the documentation on www.elver.org) for more
information. Teneo uses the hibernate entity-mapping because it makes it possible to support
dynamic-emf.
From a design point of view I find it nicer to use model concepts such as the eclassname than the
java implementation names. Having said that I fully understand that there are different views on this.
If a mapping has the entity-name set then hibernate throws errors when trying to use the classname
(as you try to do).

To disable the use of the entity-name there is a hidden feature (not tested) which you can enable as
follows.

1) Create your own class which inherits from org.eclipse.emf.teneo.hibernate.mapper.MappingContext
2) Override one method: forceUseOfInstance and let it return true.
3) Then do this:
dataStore.getExtensionManager().registerExtension(MappingCon text.class.getName(),
MyGreatMappingContext.class.getName();
before calling initialize on the datastore.

If you have time can you enter a bugzilla to make this option driven? Then I can add testcases for
this also.

btw, support for Teneo is given on the EMF newsgroup to which I cross-posted.

gr. Martin

Mikhail Kadan wrote:
> Hi.
>
> I have EMF model, which defines only one class "A", without any
> attrinutes. I map this to DB using Teneo/Hibernate:
>
> ...
> session.beginTransaction();
>
> A a = TestFactory.eINSTANCE.createA();
> Long aId = (Long) session.save(a);
>
> session.getTransaction().commit();
> ...
>
> Ok. Then I try to load this object from DB:
> A a2 = (A) session.load("A", aId);
>
> Works fine. But I need to load objects from DB not by EMF name, but by
> interface/instance name/class. Hibernate provides me with such method:
>
> A a3 = (A) session.load(A.class, aId);
>
> But it fails with:
>
> org.hibernate.MappingException: Unknown entity: test.A
>
> So I look into generated "hibernate.hbm.xml":
>
> <class name="test.impl.AImpl" entity-name="A" ...
>
> So what do I think? Maybe Teneo places invalid value into "entity-name"
> attribute for class mapping, so I cannot load classes by interface, and
> have to provide name string w/o package specification? Of cource, I can
> always get this string by traversing through EPackage.Registry, but its
> very perfomance damaging option.
>
> Thanks.
>


--

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: Teneo and Hibernate's Session.load() issue [message #620162 is a reply to message #127688] Wed, 30 July 2008 08:21 Go to previous message
Mikhail Kadan is currently offline Mikhail KadanFriend
Messages: 61
Registered: July 2009
Member
I've tried this and I got:

org.hibernate.HibernateException: Could not build tuplizer
[org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer]
at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping .buildEntityTuplizer(EntityEntityModeToTuplizerMapping.java: 110)
at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping . <init>(EntityEntityModeToTuplizerMapping.java:48)
at
org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295)
at
org.hibernate.persister.entity.AbstractEntityPersister.<init >(AbstractEntityPersister.java:434)
at
org.hibernate.persister.entity.JoinedSubclassEntityPersister . <init>(JoinedSubclassEntityPersister.java:91)
at
org.hibernate.persister.PersisterFactory.createClassPersiste r(PersisterFactory.java:58)
at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1294)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:162)
at
org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:82)
at teneo.Application.start(Application.java:42)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping .buildEntityTuplizer(EntityEntityModeToTuplizerMapping.java: 107)
... 23 more
Caused by: java.lang.NullPointerException
at
org.eclipse.emf.teneo.util.StoreUtil.getEStructuralFeature(S toreUtil.java:360)
at
org.eclipse.emf.teneo.hibernate.HbUtil.getPropertyAccessor(H bUtil.java:123)
at
org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getProp ertyAccessor(EMFTuplizer.java:262)
at
org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.buildPr opertyGetter(EMFTuplizer.java:138)
at
org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:125)
at
org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.<init>(EMFTuplizer.java:76)
... 28 more
Re: Teneo and Hibernate's Session.load() issue [message #620163 is a reply to message #127728] Wed, 30 July 2008 08:29 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Yes an untested/hidden feature.... :-(. Can you enter a bugzilla for this? I will do a new build in
a few days (around the weekend) for this and some other open issues.

gr. Martin

Mikhail Kadan wrote:
> I've tried this and I got:
>
> org.hibernate.HibernateException: Could not build tuplizer
> [org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer]
> at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping .buildEntityTuplizer(EntityEntityModeToTuplizerMapping.java: 110)
>
> at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping . <init>(EntityEntityModeToTuplizerMapping.java:48)
>
> at
> org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295)
> at
> org.hibernate.persister.entity.AbstractEntityPersister.<init >(AbstractEntityPersister.java:434)
>
> at
> org.hibernate.persister.entity.JoinedSubclassEntityPersister . <init>(JoinedSubclassEntityPersister.java:91)
>
> at
> org.hibernate.persister.PersisterFactory.createClassPersiste r(PersisterFactory.java:58)
>
> at
> org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
> at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configur ation.java:1294)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.buildSess ionFactory(HbSessionDataStore.java:162)
>
> at
> org.eclipse.emf.teneo.hibernate.HbSessionDataStore.initializ e(HbSessionDataStore.java:82)
>
> at teneo.Application.start(Application.java:42)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:382)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> 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:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> at
> org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping .buildEntityTuplizer(EntityEntityModeToTuplizerMapping.java: 107)
>
> ... 23 more
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.emf.teneo.util.StoreUtil.getEStructuralFeature(S toreUtil.java:360)
>
> at
> org.eclipse.emf.teneo.hibernate.HbUtil.getPropertyAccessor(H bUtil.java:123)
> at
> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.getProp ertyAccessor(EMFTuplizer.java:262)
>
> at
> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.buildPr opertyGetter(EMFTuplizer.java:138)
>
> at
> org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:125)
>
> at
> org.eclipse.emf.teneo.hibernate.tuplizer.EMFTuplizer.<init>(EMFTuplizer.java:76)
>
> ... 28 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:[EMF Compare] How to deactivate
Next Topic:[Teneo] Cascade deletes causing not null constraint violations.
Goto Forum:
  


Current Time: Sun Mar 29 23:04:11 GMT 2020

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

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

Back to the top