Hibernate 检索策略 (lazy,batch-size,fetch属性)

以  customer-order为例 html 一.类级别的检索策略 customer.hbm.xml java <class name="Customer" table="CUSTOMERS" lazy="true">注意: 1.lazy=false:当即检索,lazy=true:延时检索    默认truesession 2.lazy属性只对  load  方法有效,对 get,HQL,QB
相关文章
相关标签/搜索