You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Darren Hartford <dh...@ghsinc.com> on 2008/02/29 14:35:39 UTC
complex models [was: Why would I choose OpenJPA over Hibernate?]
That's very interesting - is there a test case that demonstrates this
compared to hibernate? If this is truly a strength of OpenJPA, I'm
interested, but need some proof ;-)
> -----Original Message-----
> From: Gil Markham [mailto:gil@evri.com]
> Sent: Thursday, February 28, 2008 12:32 PM
> To: users@openjpa.apache.org
> Subject: Re: Why would I choose OpenJPA over Hibernate?
>
> The biggest advantage of OpenJPA (IMHO) is when you combine a complex
> object model, fetch groups and a reflection based serialization engine
> (JAXB,Xstream). The ability to have the orm layer grab exactly what
the
> application needs and then hand the model objects directly to a
> serialization mechanism removes a serious amount of code devoted to
> walking object graphs and using 'initialize'. If you are dealing with
> simple databases and flat model classes there's little difference. As
> soon as you're dealing with multiple levels of one-to-many
relationships
> the benefits of fetch groups become apparent immediately.
>
> -Gil
>