Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » eclipse plugin dependencies
eclipse plugin dependencies [message #87688] Thu, 28 June 2007 18:47 Go to next message
Eclipse UserFriend
Originally posted by: jerry_frain.yahoo.com

My apologies if this has been discussed before, I didn't see anything in
the last several hundred posts.

I'm a little confused by the eclipse plugin dependencies. The teneo
plugin the creates the hibernate mappings simply reads from file (ecore
model) and writes to a file (hibernate.hbm.xml).

I don't understand why I have to modify the plugin dependencies of my
project that contains the ecore model in order for teneo to create the
mappings.

Are there any plans to change this?

Thanks,

Jerry
Re: eclipse plugin dependencies [message #87706 is a reply to message #87688] Thu, 28 June 2007 20:54 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
The Teneo menu option available to you when doing a right mouse click on an ecore file does not read
the ecore file itself but searches for the generated java EPackageImpl class and initializes it. The
Teneo plugin does this by launching a java program which runs using the classpath of the model
project itself. Otherwise it can't initialize the generated EPackageImpl class. For the creation of
the mapping file itself it needs also access to the Teneo plugins. As it uses the classpath of the
model project itself the plugins need to be in the classpath of the model project.
The reason that Teneo uses the initialized generated PackageImpl is that this allows Teneo to create
a mapping file which uses the generated java classes (for proxies etc.). The ecore file itself won't
give information on the generated java files.

I hope this explains it.

There are no plans to change this as I don't know another way of doing this through a menu option.
If anyone knows another/better way of accomplishing this then I am interested ofcourse.

Btw, You can always programmatically create a mapping file (look in the HbHelper class).

gr. Martin

Jerry Frain wrote:
> My apologies if this has been discussed before, I didn't see anything in
> the last several hundred posts.
>
> I'm a little confused by the eclipse plugin dependencies. The teneo
> plugin the creates the hibernate mappings simply reads from file (ecore
> model) and writes to a file (hibernate.hbm.xml).
>
> I don't understand why I have to modify the plugin dependencies of my
> project that contains the ecore model in order for teneo to create the
> mappings.
>
> Are there any plans to change this?
>
> Thanks,
>
> Jerry


--

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: eclipse plugin dependencies [message #608611 is a reply to message #87688] Thu, 28 June 2007 20:54 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
The Teneo menu option available to you when doing a right mouse click on an ecore file does not read
the ecore file itself but searches for the generated java EPackageImpl class and initializes it. The
Teneo plugin does this by launching a java program which runs using the classpath of the model
project itself. Otherwise it can't initialize the generated EPackageImpl class. For the creation of
the mapping file itself it needs also access to the Teneo plugins. As it uses the classpath of the
model project itself the plugins need to be in the classpath of the model project.
The reason that Teneo uses the initialized generated PackageImpl is that this allows Teneo to create
a mapping file which uses the generated java classes (for proxies etc.). The ecore file itself won't
give information on the generated java files.

I hope this explains it.

There are no plans to change this as I don't know another way of doing this through a menu option.
If anyone knows another/better way of accomplishing this then I am interested ofcourse.

Btw, You can always programmatically create a mapping file (look in the HbHelper class).

gr. Martin

Jerry Frain wrote:
> My apologies if this has been discussed before, I didn't see anything in
> the last several hundred posts.
>
> I'm a little confused by the eclipse plugin dependencies. The teneo
> plugin the creates the hibernate mappings simply reads from file (ecore
> model) and writes to a file (hibernate.hbm.xml).
>
> I don't understand why I have to modify the plugin dependencies of my
> project that contains the ecore model in order for teneo to create the
> mappings.
>
> Are there any plans to change this?
>
> Thanks,
>
> Jerry


--

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:eclipse plugin dependencies
Next Topic:"does not translate to an instance class"
Goto Forum:
  


Current Time: Thu Sep 26 00:38:23 GMT 2024

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

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

Back to the top