Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Re: [EMF Teneo] problems with integration of MySQL and EclipseLink in EMF Teneo
Re: [EMF Teneo] problems with integration of MySQL and EclipseLink in EMF Teneo [message #533726] Sun, 16 May 2010 10:16 Go to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Philipp,
Do you still see an orm.xml generated (eventhough you get an error)?

Is what you see similar to what is described in this bugzilla?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=312587

I do not really have good experience with the dropins folder. You can also install some dependencies (mysql, hsqldb)
from this update site:
http://www.elver.org/eclipse/update

Did you add the dependencies to teneo/commons.logging to the model project as described in:
http://wiki.eclipse.org/Teneo/EclipseLink#Generating_the_orm .xml_through_the_menu

As a side remark, I am not sure if your project is for a web (service) application or for a RCP. If it is for a web
(service) application then this project maybe of interest for you:
http://wiki.eclipse.org/Texo

I am currently adding orm-generation to Texo. This will be released in a few days from now.

btw, Teneo is supported on the main EMF newsgroup which I added as a cc to this post.

gr. Martin

philipp.wode@gmx.net wrote:
> Hello Eclipse users,
>
> I'm new to EMF. For my next project I want to use EclipseLink as
> OR-mapper to store data permanently in a database (MySQL in my case).
> So, I've looked about an appropriate framework and found Teneo for
> modelling with EMF.
> In my next step, I've tried to configure the Manifest file as described
> in this http://wiki.eclipse.org/Teneo/EclipseLink For adding the mysql
> jdbc driver, which I downloaded beforce, I've copied the jar file in the
> dropins folder of my Eclipse installation. After this, I've created a
> simple one-class-model (for testing purposes only) and tried to generate
> an orm.xml file. As result, I get a NullpointerException with the
> following error:
>
> 15.05.2010 11:07:00
> org.eclipse.emf.teneo.classloader.ClassLoaderResolver
> setClassLoaderStrategy
> INFO: Class loader strategy set to:
> org.eclipse.emf.teneo.classloader.ContextClassLoaderStrategy
>
> I'm absolutely helpless. What I have exactly to do to integrate the
> mysql jdbc driver and EclipseLink in EMF Teneo such as in the
> http://wiki.eclipse.org/Teneo/Hibernate/Download_and_Install ?
>
> Thanks in advance
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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: [EMF Teneo] problems with integration of MySQL and EclipseLink in EMF Teneo [message #533755 is a reply to message #533726] Sun, 16 May 2010 18:17 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Philipp,
To handle the EMF specifics Teneo provides a runtime layer which adapts Hibernate/EclipseLink at runtime. Some of these
specifics:
EMF uses custom implementations for Lists this means that you can't use EMF generated code directly with EclipseLink or
Hibernate (you need Teneo). EMF objects must implement a specific interface and EMF adds many methods to an object which
are not necessarily usefull in all cases.

Texo on the other hand generates code which is just plain java (with standard List/Set implementations) without compile
time dependencies on EMF/Texo. This code will work out of the box with EclipseLink/Hibernate without a specific
additional runtime layer. In the end this is a cleaner (imo) solution for server side code. In addition because the
generated code is really 'just' java you are more inline with what other frameworks (such as JSF) are expecting (so less
change of trouble along the way).
See this wiki page for more details:
http://wiki.eclipse.org/Texo/Texo_and_EMF#Why_Texo_.28compar ed_to_EMF.29

Some other advantages of Texo:
- easy customization of generation templates:
http://wiki.eclipse.org/Texo/Template_Overriding
- you can specify additional java annotations in the model which are transferred/maintained in the generated code:
http://wiki.eclipse.org/Texo/Direct_Java_Annotations
- Texo's model-annotation driven approach gives you great control over code and ORM generation.
http://wiki.eclipse.org/Texo/Code_Generation_Details
http://wiki.eclipse.org/Texo/Code_Generation_Patterns

See other comments inline marked with MT>>.

gr. Martin

philipp.wode@gmx.net wrote:
> Quote:
>> Do you still see an orm.xml generated (eventhough you get an error)?
>
> yes. Also, I've thought there must be a persistence.xml for ORM. Do I
> need this file or not?
>
> Quote:
>> Is what you see similar to what is described in this bugzilla?
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=312587
>
> yes. I dont know where I can find the Eclipse log file, but I think
> thats the error
MT>> Ok, I will take a look in a few days.

>
> Quote:
>> I do not really have good experience with the dropins folder. You can
>> also install some dependencies (mysql, hsqldb) from this update site:
>> http://www.elver.org/eclipse/update
>
> Ok, but these are the dependencies for Hibernate. Do they also work for
> EclipseLink?
MT>> yes the mysql/hsqldb are standard so no hibernate specifics there

>
> Quote:
>> As a side remark, I am not sure if your project is for a web (service)
>> application or for a RCP. If it is for a web (service) application
>> then this project maybe of interest for you:
>> http://wiki.eclipse.org/Texo
>
> I've started a normal empty EMF project to learn what I have to do for
> installation of EMF Teneo (incl. MySQL and EclipseLink) and the correct
> configuration work. But until now, I have not reached much more. My main
> goal is then to integrate the model in a JSF or GWT project.
> On the site of your link it is described that you can use Texo for
> providing model driven development for web application. Is that not
> similar to Teneo?
MT>> See my reply above
>
> I've tried to install Texo from the update site, but before the
> installation process I get following install detail:
MT>> I published a new build just now. Hopefully this is solved.

>
> Cannot complete the install because one or more required items could not
> be found.
> Software being installed: EMFT Texo (Incubation) 0.1.0.v201005141405
> (org.eclipse.emf.texo.feature.group 0.1.0.v201005141405)
> Missing requirement: Texo-annotations-model Edit Support (Incubation)
> 0.1.0.v201005141405 (org.eclipse.emf.texo.annotations.model.edit
> 0.1.0.v201005141405) requires 'bundle org.eclipse.core.runtime
> [3.6.0,3.7.0)' but it could not be found
> Cannot satisfy dependency:
> From: EMFT Texo (Incubation) 0.1.0.v201005141405
> (org.eclipse.emf.texo.feature.group 0.1.0.v201005141405)
> To: org.eclipse.emf.texo.annotations.model.edit [0.1.0,0.2.0)
>
> What I have to do to solve the problem?
> Anyway, Texo is an interesting project. But I've also noticed that with
> the upcoming 2.6 version EMF supports GWT
> ( http://wiki.eclipse.org/EMF/New_and_Noteworthy/Helios#Milest one_7).
> What do you think about this?
MT>> The EMF GWT is for the client side, Texo is targeted for the server side (for now). There is another user which
uses EMF GWT/Texo in this way.

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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:Shared editing domain problem
Next Topic:EAnnotations and their contents
Goto Forum:
  


Current Time: Fri Apr 26 07:42:56 GMT 2024

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

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

Back to the top