Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [TENEO] No annotated model element present
[TENEO] No annotated model element present [message #608812] Thu, 19 July 2007 12:24
Eclipse UserFriend
Originally posted by: doux.guil.gmail.com

Hi,

I'm always experiencing problems to add models corresponding to my
meta-model in Teneo.

If I create in a new class a new HbDataStore,
load my meta-model from ecore files with my injectors,
then register the package of my meta-model with setEPackage(mypackages),
I can add my models to the HbDataStore with no problems, it works fine.

But when I retrieve a previously loaded meta-model from Teneo, and then
register his packages to the HbDataStore, I can't persist any model...

I obtain this exception :

found
org.eclipse.gmt.am3.core.storage.RepositoryException:
java.lang.IllegalArgumentException: No annotated model element present
for: Deb for type EClass has its epackage been registered with Teneo?
at test.teneoRep.addModel(teneoRep.java:803)
at test.testrepository.main(testrepository.java:103)
Caused by: java.lang.IllegalArgumentException: No annotated model
element present for: Deb for type EClass has its epackage been
registered with Teneo?
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:341)
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:276)
at
org.eclipse.emf.teneo.mapping.strategy.impl.EntityResolvingN ameStrategy.toEntityName(EntityResolvingNameStrategy.java:84 )
at
org.eclipse.emf.teneo.hibernate.EMFInterceptor.getEntityName (EMFInterceptor.java:55)
at org.hibernate.impl.SessionImpl.guessEntityName(SessionImpl.j ava:1765)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImp l.java:1338)
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGe neratedId(AbstractSaveEventListener.java:96)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.sav eWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener .java:186)
at
org.hibernate.event.def.DefaultSaveEventListener.saveWithGen eratedOrRequestedId(DefaultSaveEventListener.java:33)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.ent ityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
at
org.hibernate.event.def.DefaultSaveEventListener.performSave OrUpdate(DefaultSaveEventListener.java:27)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onS aveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535 )
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
at test.teneoRep.addMo(teneoRep.java:296)
at test.teneoRep.addM(teneoRep.java:327)
at test.teneoRep.addModel(teneoRep.java:801)
at test.testrepository.main(testrepository.java:103)

I have tried many ways, but I obtain always the same exception.

Can you help me ?


Thanks,

guillaume doux
Previous Topic:[EMF Compare]Writing a DiffModel as .uml
Next Topic:[Teneo] Last version How I can get it?
Goto Forum:
  


Current Time: Sat Aug 13 03:42:30 GMT 2022

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

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

Back to the top