Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Mapping generation requires plugin runtime dependency
[Teneo] Mapping generation requires plugin runtime dependency [message #75879] Sun, 18 March 2007 00:37 Go to next message
Didier Villevalois is currently offline Didier VillevaloisFriend
Messages: 86
Registered: July 2009
Member
Hi Martin,

I noticed that generating a mapping file for an ecore requires to add a
plugin runtime dependency on o.e.e.teneo.hibernate.
Maybe this should not be a requirement. In fact, the plugin where you
generate a mapping may not be the plugin which runs and configure the
datastore.

Didier.
Re: [Teneo] Mapping generation requires plugin runtime dependency [message #75915 is a reply to message #75879] Sun, 18 March 2007 13:51 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Didier,
The mapping generation is not run as a standard eclipse menu option (in the classpath of the
installed eclipse plugins). Instead it is run as a java application (just as you would choose run as
> java application). See the class: org.eclipse.emf.teneo.eclipse.genxml.RunGenerateJob.
The generate-mapping program runs in the classpath of the model project (with the generated java
sources). This is done so that the generated model classes can be loaded during the generate-mapping
run. Sometimes Teneo needs to know the generated java implementation classes. These are only
available by actually instantiating an eclass.
Because the generate-mapping program uses the classpath of the model project, the model project
requires the hibernate plugin (actually the org.eclipse.emf.teneo.hibernate.mapper plugin should be
enough).

gr. Martin

Ptitjes wrote:
> Hi Martin,
>
> I noticed that generating a mapping file for an ecore requires to add a
> plugin runtime dependency on o.e.e.teneo.hibernate.
> Maybe this should not be a requirement. In fact, the plugin where you
> generate a mapping may not be the plugin which runs and configure the
> datastore.
>
> Didier.


--

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] Mapping generation requires plugin runtime dependency [message #603708 is a reply to message #75879] Sun, 18 March 2007 13:51 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Didier,
The mapping generation is not run as a standard eclipse menu option (in the classpath of the
installed eclipse plugins). Instead it is run as a java application (just as you would choose run as
> java application). See the class: org.eclipse.emf.teneo.eclipse.genxml.RunGenerateJob.
The generate-mapping program runs in the classpath of the model project (with the generated java
sources). This is done so that the generated model classes can be loaded during the generate-mapping
run. Sometimes Teneo needs to know the generated java implementation classes. These are only
available by actually instantiating an eclass.
Because the generate-mapping program uses the classpath of the model project, the model project
requires the hibernate plugin (actually the org.eclipse.emf.teneo.hibernate.mapper plugin should be
enough).

gr. Martin

Ptitjes wrote:
> Hi Martin,
>
> I noticed that generating a mapping file for an ecore requires to add a
> plugin runtime dependency on o.e.e.teneo.hibernate.
> Maybe this should not be a requirement. In fact, the plugin where you
> generate a mapping may not be the plugin which runs and configure the
> datastore.
>
> Didier.


--

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
Previous Topic:[Teneo] Mapping generation requires plugin runtime dependency
Next Topic:[Teneo] org.eclipse.emf.teneo.hibernate.mapper/model not included in sources builds
Goto Forum:
  


Current Time: Fri Apr 26 23:24:08 GMT 2024

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

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

Back to the top