Hibernate Proxies – Why they’re used and How to Unproxy them

preview_player
Показать описание
Hibernate generates proxies to provide lazy loading for to-one associations, and you can use them to improve the performance of some of your write operations. You might have seen the class names of these proxies in your debugger or some log messages. They consist of the name of your entity class and a postfix that depends on your Hibernate version and the bytecode manipulation library that Hibernate uses internally.

In this video I will show you how to detect if an object is a proxy, a common pitfall when working with a proxy object, how to initialize its attributes, and how to unproxy it to get the underlying entity object.

Links mentioned:

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

#Hibernate #Proxies #Unproxy
Рекомендации по теме
Комментарии
Автор

ive watched several videos of this channel and i can say they are very informative but wats more important no one else does such good dissection of hibernate on youtube. everybody else just do junior level basic hibernate staff. i wish there were more videos like this because this is the most interesting part about hibernate

olenaqwerty
Автор

you have been my tutor for hibernate since quite some time now. Thank you :D

sriharshanayak