[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openejb-user
Subject:    Re: Hibernate Vs OpenJPA
From:       mauro2java2011 <mauro2java2011 () gmail ! com>
Date:       2013-09-24 16:59:52
Message-ID: 1380041950.2446.0.camel () user-desktop
[Download RAW message or body]


tank you for responses .

Il giorno mar, 24/09/2013 alle 07.10 -0700, Mark Struberg [via OpenEJB]
ha scritto:
> In Hibernate 
> 
> @Basic(fetchType=LAZY) 
> byte[] image; 
> 
> public byte [] getImage() {return image;} 
> 
> in OpenJPA and eclipselink you will get some 'enhance' classes which
> will do kind of 
> 
> byte[] image; 
> public byte[] getImage() { 
> if (!imageLoaded()) { 
> image = loadImage(); 
> } 
> return image; 
> 
> } 
> 
> 
> Means in OpenJPA and EclipseLink, lazy loading does work. In Hibernate
> it does not. 
> 
> A few years ago I wrote a blog post about it [1]. Maybe this helps. 
> 
> 
> LieGrue, 
> strub 
> 
> [1]
> http://struberg.wordpress.com/2012/01/08/jpa-enhancement-done-right/
> 
> 
> 
> 
> 
> > ________________________________ 
> > From: mauro2java2011 <[hidden email]> 
> > To: [hidden email] 
> > Sent: Tuesday, 24 September 2013, 14:49 
> > Subject: Re: Hibernate Vs OpenJPA 
> > 
> > 
> > 1) so into hibernate bytes [] iti s eager loading?? 
> > 
> > 2)But if hibernate not use weaving, whi OpenJPA and Eclipse-link use 
> > weaving?? 
> > 
> > 3) What then  is the advantage of using  OpenJPA or Eclipse-link
> instead of 
> > hibernate? 
> > In my opinion only complicate things ... 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > View this message in context:
> http://openejb.979440.n4.nabble.com/Hibernate-Vs-OpenJPA-tp4665234p4665251.html
> > Sent from the OpenEJB User mailing list archive at Nabble.com. 
> > 
> > 
> > 
> 
> 
> 
> 
> ______________________________________________________________________
> If you reply to this email, your message will be added to the
> discussion below:
> http://openejb.979440.n4.nabble.com/Hibernate-Vs-OpenJPA-tp4665234p4665252.html 
> To unsubscribe from Hibernate Vs OpenJPA, click here.
> NAML 






--
View this message in context: \
http://openejb.979440.n4.nabble.com/Hibernate-Vs-OpenJPA-tp4665234p4665260.html Sent \
from the OpenEJB User mailing list archive at Nabble.com.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic