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:[EMAIL PROTECTED]
> Sent: Thursday, February 28, 2008 12:32 PM
> To: [email protected]
> 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
> 

Reply via email to