Hibernate Lazy采用CGLIB,可以对类进行代理,l azy 用在:
Class:
可以取值true,false,默认true
Property:
可以取值true,false,需要类增强工具
集合:
可以取值 true/false/extra
扫描二维码关注公众号,回复:
853833 查看本文章
one-to-one,many-to-one:
可以取值 false,proxy/noproxy
class标签上的lazy不会影响到集合上的lazy特性