Hibernate proxy in case of lazy loading

23 views
Skip to first unread message

Chetan Chhatbar

unread,
Sep 21, 2013, 1:27:49 AM9/21/13
to java-bra...@googlegroups.com
Hi,

Can anyone explain me ...how the Hibernate proxy exactly works in case of lazy loading?

In one of the video, it has been mentioned that hibernate creates a sub class (proxy) of the actual entity class and returns the object of that proxy class in case of lazy loading. However, I marked my entity class as final ...still the lazy loading works. Also, it passes instanceof check.

Please explain me how this proxy thing actually works.

Thanks,
Chetan


Reply all
Reply to author
Forward
0 new messages