Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] Should we use Hibernate or JDO?
[Teneo] Should we use Hibernate or JDO? [message #64909] Tue, 19 December 2006 15:44 Go to next message
Oliver Wong is currently offline Oliver WongFriend
Messages: 47
Registered: July 2009
Member
We've just started looking into persisting our EMF models to a database,
and we've decided to go with Teneo for this purpose. We've already got
Hibernate set up for a different (non-EMF related) part of our application,
so if Hibernate and JDO were equally well supported, we'd probably go with
Hibernate. However, some of the documents we've seen seem to imply that
Teneo has better support for JDO, in particular with respect to lazy loading
and multiple interface inheritance.

Since we haven't started writing any Teneo-related code yet, we were
wondering if someone who were starting from scratch should favour JDO over
Hibernate or not. Is there a webpage or some other document comparing the
pros and cons of each?

- Oliver
Re: [Teneo] Should we use Hibernate or JDO? [message #64928 is a reply to message #64909] Tue, 19 December 2006 19:22 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Oliver,
There is no document comparing the pros or cons.
JPOX/jdo has better support for lazy loading for single associations (and fetch groups). Both jpox
and hibernate support lazy loading of lists. Also Hibernate Teneo has much better support for
different jpa annotations (and hibernate specific annotations). Dynamic emf works with hibernate but
not with jpox.

Overall I would advice anyone familiar with jdo to stay with jpox and familiar with hibernate to use
hibernate. I myself use hibernate because I find the compile time class enhancement (which is needed
for jpox) less practical, but this is my personal way of working.
So if you are already using hibernate then I would stick to that. If you find any issues with
hibernate or missing functionality then please report it and we will do our best to adapt Teneo.

gr. Martin

Oliver Wong wrote:
> We've just started looking into persisting our EMF models to a database,
> and we've decided to go with Teneo for this purpose. We've already got
> Hibernate set up for a different (non-EMF related) part of our application,
> so if Hibernate and JDO were equally well supported, we'd probably go with
> Hibernate. However, some of the documents we've seen seem to imply that
> Teneo has better support for JDO, in particular with respect to lazy loading
> and multiple interface inheritance.
>
> Since we haven't started writing any Teneo-related code yet, we were
> wondering if someone who were starting from scratch should favour JDO over
> Hibernate or not. Is there a webpage or some other document comparing the
> pros and cons of each?
>
> - Oliver
>
>


--

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] Should we use Hibernate or JDO? [message #65196 is a reply to message #64928] Wed, 20 December 2006 14:46 Go to previous message
Oliver Wong is currently offline Oliver WongFriend
Messages: 47
Registered: July 2009
Member
"Martin Taal" <mtaal@elver.org> wrote in message
news:em9e5t$5r0$1@utils.eclipse.org...
>
> Overall I would advice anyone familiar with jdo to stay with jpox and
> familiar with hibernate to use hibernate. I myself use hibernate because I
> find the compile time class enhancement (which is needed for jpox) less
> practical, but this is my personal way of working.
> So if you are already using hibernate then I would stick to that. If you
> find any issues with hibernate or missing functionality then please report
> it and we will do our best to adapt Teneo.

Okay, thanks Martin. We'll probably stick with Hibernate then.

- Oliver
Re: [Teneo] Should we use Hibernate or JDO? [message #597108 is a reply to message #64909] Tue, 19 December 2006 19:22 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Oliver,
There is no document comparing the pros or cons.
JPOX/jdo has better support for lazy loading for single associations (and fetch groups). Both jpox
and hibernate support lazy loading of lists. Also Hibernate Teneo has much better support for
different jpa annotations (and hibernate specific annotations). Dynamic emf works with hibernate but
not with jpox.

Overall I would advice anyone familiar with jdo to stay with jpox and familiar with hibernate to use
hibernate. I myself use hibernate because I find the compile time class enhancement (which is needed
for jpox) less practical, but this is my personal way of working.
So if you are already using hibernate then I would stick to that. If you find any issues with
hibernate or missing functionality then please report it and we will do our best to adapt Teneo.

gr. Martin

Oliver Wong wrote:
> We've just started looking into persisting our EMF models to a database,
> and we've decided to go with Teneo for this purpose. We've already got
> Hibernate set up for a different (non-EMF related) part of our application,
> so if Hibernate and JDO were equally well supported, we'd probably go with
> Hibernate. However, some of the documents we've seen seem to imply that
> Teneo has better support for JDO, in particular with respect to lazy loading
> and multiple interface inheritance.
>
> Since we haven't started writing any Teneo-related code yet, we were
> wondering if someone who were starting from scratch should favour JDO over
> Hibernate or not. Is there a webpage or some other document comparing the
> pros and cons of each?
>
> - Oliver
>
>


--

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] Should we use Hibernate or JDO? [message #597226 is a reply to message #64928] Wed, 20 December 2006 14:46 Go to previous message
Oliver Wong is currently offline Oliver WongFriend
Messages: 47
Registered: July 2009
Member
"Martin Taal" <mtaal@elver.org> wrote in message
news:em9e5t$5r0$1@utils.eclipse.org...
>
> Overall I would advice anyone familiar with jdo to stay with jpox and
> familiar with hibernate to use hibernate. I myself use hibernate because I
> find the compile time class enhancement (which is needed for jpox) less
> practical, but this is my personal way of working.
> So if you are already using hibernate then I would stick to that. If you
> find any issues with hibernate or missing functionality then please report
> it and we will do our best to adapt Teneo.

Okay, thanks Martin. We'll probably stick with Hibernate then.

- Oliver
Previous Topic:validation using the org.eclipse.emf.validation.constraintProviders extension point
Next Topic:[Teneo] Setting Id generator from ecore file
Goto Forum:
  


Current Time: Thu Feb 25 22:43:08 GMT 2021

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

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

Back to the top