hibernate outer join属性浅析

来源:互联网 发布:最佳适应算法例题 编辑:程序博客网 时间:2024/04/26 13:45
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属性有效。
原创粉丝点击