This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes proxy concept in hibernate. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "proxy concept in hibernate." Watch "proxy concept in hibernate." New topic

proxy concept in hibernate.

vijay jacob
Ranch Hand

Joined: Jul 02, 2013
Posts: 57

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.
It's not a secret anymore!