Missing model element when generating Teneo hibernate mapping [message #603292] |
Thu, 08 March 2007 16:05 |
Duncan Alexander Messages: 90 Registered: July 2009 |
Member |
|
|
Hi ,
Im attempting to generate a hibernate mapping for my EMF model. The
model is generated from a fairly complex Rose model composed of one
main model file and six .cat files. The EMF model is generated without
any problems.
When I attempt to generate a Hibernate mapping through Teneo by
right clicking on any of the six different .ecore files which make up
the parts of the model I always receieve an error in the form:
Exception in thread "main" java.lang.IllegalArgumentException: No
annotated model element present for: Structure for type EClass has its
epackage been registered with Teneo?
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:323)
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:269)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessClass(DefaultAnnotator.java:276)
at
org.eclipse.emf.teneo.hibernate.hbannotation.util.HibernateD efaultAnnotator.processClass(HibernateDefaultAnnotator.java: 140)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessPackage(DefaultAnnotator.java:246)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ma p(DefaultAnnotator.java:159)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:158)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:90)
at
org.eclipse.emf.teneo.hibernate.mapper.GenerateHBM.createORM apperFile(GenerateHBM.java:104)
at
org.eclipse.emf.teneo.hibernate.mapper.GenerateHBM.main(Gene rateHBM.java:84)
For each of the different .ecore files the annotated model element
referred to in the error is different. I have successfully generated
mappings for very simple models but I'm at a loss as to where to look
for the source of the error in this instance.
Im running Eclipse 3.2, Teneo 0.75, EMF2.2, Hibernate 3.2
Any help greatly appreciated.
Duncan
|
|
|
Powered by
FUDForum. Page generated in 0.03418 seconds