Hibernate中Session的load(Class theClass, Serializable id)方法在什么情况下返回对象,什么情况下返回代理对象???
看的源码中的注释This method might return a proxied instance that is initialized on-demand, when a non-identifier method is accessed.
这个没看懂???
@return the persistent instance or proxy
有哪位大神会的???求解惑