What hibernate exactly will do when lazy="no-proxy"?. that is where hibernate performing bytecode instrumentation. no-proxy in the sense it will be loaded when user tries to access the object, how it is different from lazy="true" in other relation?
Could anyone provide indepth technical details to understand and differenciate?
"No-proxy" fetching: a single-valued association is fetched when the instance variable is accessed. Compared to proxy fetching, this approach is less lazy; the association is fetched even when only the identifier is accessed. It is also more transparent, since no proxy is visible to the application. This approach requires buildtime bytecode instrumentation and is rarely necessary.