A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Object Relational Mapping
proxy concept in hibernate.
Joined: Jul 02, 2013
Jul 21, 2013 16:57:41
Child is made to load lazy .So when the parent object is fetched , the child object only proxy refernce is created rather than the real child object.
So when the child object is referenced the proxy object db call to fetch the child and hence return the value.
This is the sme concept of AOP proxy where intialy the proxy hit and then proxy actually calls the real method.
I agree. Here's the link:
subject: proxy concept in hibernate.
Parent constructor calling an overridden method
EJB 3.0 Interceptors question
Hibernate - sometimes returns the object of type java assist
load() vs get()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014