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
相關文章
相關標籤/搜索