• Post Reply Bookmark Topic Watch Topic
  • New Topic

proxy concept in hibernate.

vijay jacob
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
Lasagna is spaghetti flvored cake. Just like this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!