outer join=true,hibernate對該關聯進行外連接抓取;
outer join=false, hibernate對該關聯不進行外連接抓取。
當在hibernate.cfg.xml配置文件中的屬性
<property name="hibernate.max_fetch_depth">0</property>
設置為0時,從全局關閉外連接抓取,此時outer-join屬性無效。
<property name="hibernate.max_fetch_depth">2</property>
設置為>0時,outer-join屬性有效。
posted on 2006-07-19 16:17
想飛的魚 閱讀(515)
評論(0) 編輯 收藏 所屬分類:
hibernate