| 
| [Teneo] Mapping generation requires plugin runtime dependency [message #75879] | Sat, 17 March 2007 20:37  |  | 
| Eclipse User  |  |  |  |  | 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 09:51  |  | 
| Eclipse User  |  |  |  |  | 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 09:51  |  | 
| Eclipse User  |  |  |  |  | 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
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.31691 seconds