What is Hibernate proxy?
Proxy means the authority to represent someone else In hibernate, you can map classes into proxy instead of a table. When load is called on session, a proxy is returned. The proxy contains actual method to load the data. The proxy is created by default by Hibernate, for mapping a class to a file. The code to invoke JDBC contained in this class.
The proxy attributes ?
· It enables lazy initialisation of persistent instances of the class.
· Initially hibernate returns CGLIB proxies that implement the named interface.
· Actual persistent object is loaded at the time of proxy invoked.
Ads