Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo / JPOX] Generate EMF JDO/JPOX OR Mapping
[Teneo / JPOX] Generate EMF JDO/JPOX OR Mapping [message #86432] Thu, 14 June 2007 13:29 Go to next message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

Hello,

When I want to generate EMF JDO/JPOX O/R Mapping from an ecore file, an
exception is thrown and I do not know how to solve the problem - I
create EMF project from XML Schema.


Trace :


641 [main] DEBUG org.eclipse.emf.teneo.ERuntime - Determining concrete
classes for package navigation
656 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Class names
are to be fully classified, registering all the epackages
656 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - >>>> Adding
default annotations for EPackage navigation
656 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Processing
EDataTypes
656 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Processing
EClasses
656 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Creating
mapping for eclass NavElement
656 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Adding
default annotations for EClass: NavElement
656 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Setting the
superentity of the eclass
656 [main] DEBUG
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - EReference
+ title/NavElement does not have a manytoone annotation, adding one
Exception in thread "main" java.lang.IllegalArgumentException: No
annotated model element present for: Text for type EClass has its
epackage been registered with Teneo?
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:322)
at
org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:268)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ge tEntityName(DefaultAnnotator.java:1607)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessManyToOneReference(DefaultAnnotator.java:1345)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessEFeature(DefaultAnnotator.java:644)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessClass(DefaultAnnotator.java:488)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessPackage(DefaultAnnotator.java:319)
at
org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ma p(DefaultAnnotator.java:210)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:128)
at
org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:52)
at
org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.createORMapper File(GenerateJDO.java:105)
at org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:83)
Re: [Teneo / JPOX] Generate EMF JDO/JPOX OR Mapping [message #86447 is a reply to message #86432] Thu, 14 June 2007 13:40 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
In which epackage/ecore file is the eclass Text located? Did you also select it when generating the
jdo file?

gr. Martin

french.cancan wrote:
> Hello,
>
> When I want to generate EMF JDO/JPOX O/R Mapping from an ecore file, an
> exception is thrown and I do not know how to solve the problem - I
> create EMF project from XML Schema.
>
>
> Trace :
>
>
> 641 [main] DEBUG org.eclipse.emf.teneo.ERuntime - Determining concrete
> classes for package navigation
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Class names
> are to be fully classified, registering all the epackages
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - >>>> Adding
> default annotations for EPackage navigation
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Processing
> EDataTypes
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Processing
> EClasses
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Creating
> mapping for eclass NavElement
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Adding
> default annotations for EClass: NavElement
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Setting the
> superentity of the eclass
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - EReference
> + title/NavElement does not have a manytoone annotation, adding one
> Exception in thread "main" java.lang.IllegalArgumentException: No
> annotated model element present for: Text for type EClass has its
> epackage been registered with Teneo?
> at
> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:322)
>
> at
> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:268)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ge tEntityName(DefaultAnnotator.java:1607)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessManyToOneReference(DefaultAnnotator.java:1345)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessEFeature(DefaultAnnotator.java:644)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessClass(DefaultAnnotator.java:488)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessPackage(DefaultAnnotator.java:319)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ma p(DefaultAnnotator.java:210)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:128)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:52)
>
> at
> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.createORMapper File(GenerateJDO.java:105)
>
> at
> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:83)


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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 / JPOX] Generate EMF JDO/JPOX OR Mapping [message #86462 is a reply to message #86447] Thu, 14 June 2007 13:55 Go to previous message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

Thank you for the idea to make multiple selection. I did not think that
it would work.

Quentin


Martin Taal wrote:
> Hi,
> In which epackage/ecore file is the eclass Text located? Did you also
> select it when generating the jdo file?
>
> gr. Martin
>
> french.cancan wrote:
>> Hello,
>>
>> When I want to generate EMF JDO/JPOX O/R Mapping from an ecore file,
>> an exception is thrown and I do not know how to solve the problem - I
>> create EMF project from XML Schema.
>>
>>
>> Trace :
>>
>>
>> 641 [main] DEBUG org.eclipse.emf.teneo.ERuntime - Determining
>> concrete classes for package navigation
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Class
>> names are to be fully classified, registering all the epackages
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - >>>>
>> Adding default annotations for EPackage navigation
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator -
>> Processing EDataTypes
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator -
>> Processing EClasses
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Creating
>> mapping for eclass NavElement
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Adding
>> default annotations for EClass: NavElement
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Setting
>> the superentity of the eclass
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator -
>> EReference + title/NavElement does not have a manytoone annotation,
>> adding one
>> Exception in thread "main" java.lang.IllegalArgumentException: No
>> annotated model element present for: Text for type EClass has its
>> epackage been registered with Teneo?
>> at
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:322)
>>
>> at
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:268)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ge tEntityName(DefaultAnnotator.java:1607)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessManyToOneReference(DefaultAnnotator.java:1345)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessEFeature(DefaultAnnotator.java:644)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessClass(DefaultAnnotator.java:488)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessPackage(DefaultAnnotator.java:319)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ma p(DefaultAnnotator.java:210)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:128)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:52)
>>
>> at
>> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.createORMapper File(GenerateJDO.java:105)
>>
>> at
>> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:83)
>
>
Re: [Teneo / JPOX] Generate EMF JDO/JPOX OR Mapping [message #606984 is a reply to message #86432] Thu, 14 June 2007 13:40 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
In which epackage/ecore file is the eclass Text located? Did you also select it when generating the
jdo file?

gr. Martin

french.cancan wrote:
> Hello,
>
> When I want to generate EMF JDO/JPOX O/R Mapping from an ecore file, an
> exception is thrown and I do not know how to solve the problem - I
> create EMF project from XML Schema.
>
>
> Trace :
>
>
> 641 [main] DEBUG org.eclipse.emf.teneo.ERuntime - Determining concrete
> classes for package navigation
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Class names
> are to be fully classified, registering all the epackages
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - >>>> Adding
> default annotations for EPackage navigation
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Processing
> EDataTypes
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Processing
> EClasses
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Creating
> mapping for eclass NavElement
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Adding
> default annotations for EClass: NavElement
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Setting the
> superentity of the eclass
> 656 [main] DEBUG
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - EReference
> + title/NavElement does not have a manytoone annotation, adding one
> Exception in thread "main" java.lang.IllegalArgumentException: No
> annotated model element present for: Text for type EClass has its
> epackage been registered with Teneo?
> at
> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:322)
>
> at
> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:268)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ge tEntityName(DefaultAnnotator.java:1607)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessManyToOneReference(DefaultAnnotator.java:1345)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessEFeature(DefaultAnnotator.java:644)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessClass(DefaultAnnotator.java:488)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessPackage(DefaultAnnotator.java:319)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ma p(DefaultAnnotator.java:210)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:128)
>
> at
> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:52)
>
> at
> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.createORMapper File(GenerateJDO.java:105)
>
> at
> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:83)


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
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 / JPOX] Generate EMF JDO/JPOX OR Mapping [message #606989 is a reply to message #86447] Thu, 14 June 2007 13:55 Go to previous message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

Thank you for the idea to make multiple selection. I did not think that
it would work.

Quentin


Martin Taal wrote:
> Hi,
> In which epackage/ecore file is the eclass Text located? Did you also
> select it when generating the jdo file?
>
> gr. Martin
>
> french.cancan wrote:
>> Hello,
>>
>> When I want to generate EMF JDO/JPOX O/R Mapping from an ecore file,
>> an exception is thrown and I do not know how to solve the problem - I
>> create EMF project from XML Schema.
>>
>>
>> Trace :
>>
>>
>> 641 [main] DEBUG org.eclipse.emf.teneo.ERuntime - Determining
>> concrete classes for package navigation
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Class
>> names are to be fully classified, registering all the epackages
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - >>>>
>> Adding default annotations for EPackage navigation
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator -
>> Processing EDataTypes
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator -
>> Processing EClasses
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Creating
>> mapping for eclass NavElement
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Adding
>> default annotations for EClass: NavElement
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator - Setting
>> the superentity of the eclass
>> 656 [main] DEBUG
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator -
>> EReference + title/NavElement does not have a manytoone annotation,
>> adding one
>> Exception in thread "main" java.lang.IllegalArgumentException: No
>> annotated model element present for: Text for type EClass has its
>> epackage been registered with Teneo?
>> at
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.checkAnnotatedPresent(PAnnotatedModelImpl.java:322)
>>
>> at
>> org.eclipse.emf.teneo.annotations.pamodel.impl.PAnnotatedMod elImpl.getPAnnotated(PAnnotatedModelImpl.java:268)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ge tEntityName(DefaultAnnotator.java:1607)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessManyToOneReference(DefaultAnnotator.java:1345)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessEFeature(DefaultAnnotator.java:644)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessClass(DefaultAnnotator.java:488)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.pr ocessPackage(DefaultAnnotator.java:319)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.DefaultAnnotator.ma p(DefaultAnnotator.java:210)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:128)
>>
>> at
>> org.eclipse.emf.teneo.annotations.mapper.PersistenceMappingB uilder.buildMapping(PersistenceMappingBuilder.java:52)
>>
>> at
>> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.createORMapper File(GenerateJDO.java:105)
>>
>> at
>> org.eclipse.emf.teneo.jpox.mapper.GenerateJDO.main(GenerateJ DO.java:83)
>
>
Previous Topic:[Teneo / JPOX] Generate EMF JDO/JPOX OR Mapping
Next Topic:problem with object in mulitple lists
Goto Forum:
  


Current Time: Thu Jan 21 06:26:09 GMT 2021

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

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

Back to the top