outer join=true,hibernate對(duì)該關(guān)聯(lián)進(jìn)行外連接抓取;
outer join=false, hibernate對(duì)該關(guān)聯(lián)不進(jìn)行外連接抓取。
當(dāng)在hibernate.cfg.xml配置文件中的屬性
<property name="hibernate.max_fetch_depth">0</property>
設(shè)置為0時(shí),從全局關(guān)閉外連接抓取,此時(shí)outer-join屬性無(wú)效。
<property name="hibernate.max_fetch_depth">2</property>
設(shè)置為>0時(shí),outer-join屬性有效。