JPOXMappingException: URI <X> does not translate to an eclass [message #620196] |
Wed, 06 August 2008 18:55 |
Eclipse User |
|
|
|
Originally posted by: richard.fritzson.gmail.com
Hi,
I've been having pretty good success using Teneo to map a large ecore
model (based on OMG's KDM standard). However, one problem I've had to work
around is my inability to use abstract classes. (To get around this I've
converted all my abstract classes to concrete ones but this is no longer a
reasonable tactic.)
If I create an EReference and specify its EType to be an EClass whose
"abstract" property is "true" I get this error from GenerateJDO :
"JPOXMappingException: URI <X> does not translate to an eclass" where <X>
is the name of the abstract EClass.
This happens even when the abstract EClass has non abstract subclasses.
The simplest example of this can be created by taking the library example
and creating an abstract class Person, making it the superclass of Writer
and changing the EType of a library's Writers to Person.
I'm using Eclipse 3.4, jpox-1.1.9, jdo2 2.0 & bcel-5.2
If anyone has a suggestion for how I can address this, I would appreciate
it.
Thanks.
Rich Fritzson
The stack looks like this:
Aug 6, 2008 2:38:35 PM org.eclipse.emf.teneo.TeneoException <init>
SEVERE: Uri: Person does not translate to an eclass
org.eclipse.emf.teneo.jpox.mapper.JPOXMappingException: Uri: Person does
not translate to an eclass
at
org.eclipse.emf.teneo.jpox.mapper.MappingUtil.getImplNameOfE Class(MappingUtil.java:44)
at
org.eclipse.emf.teneo.jpox.mapper.association.OneToManyMappe r.map(OneToManyMapper.java:122)
at
org.eclipse.emf.teneo.jpox.mapper.property.EClassFeatureMapp er.processPersistableMember(EClassFeatureMapper.java:172)
at
org.eclipse.emf.teneo.jpox.mapper.property.EClassFeatureMapp er.map(EClassFeatureMapper.java:97)
at
org.eclipse.emf.teneo.jpox.mapper.JPOXMappingGenerator.proce ssClassAnnotation(JPOXMappingGenerator.java:257)
at
org.eclipse.emf.teneo.jpox.mapper.JPOXMappingGenerator.gener ate(JPOXMappingGenerator.java:139)
at
org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.createORMapper File(GenerateJDO.java:127)
at
org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.createORMapper File(GenerateJDO.java:92)
at org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:87)
|
|
|
Powered by
FUDForum. Page generated in 0.06183 seconds