`

hibernate outer join属性浅析

阅读更多
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属性有效。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics