Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Hibernate中获取类型与获取模式_Hibernate - Fatal编程技术网

在Hibernate中获取类型与获取模式

在Hibernate中获取类型与获取模式,hibernate,Hibernate,假设我使用下面的Eager+select(fetchingstatergy),collectins将被延迟加载还是被急切加载 @OneToMany(fetch = FetchType.Eager, mappedBy = "stock") @Fetch(FetchMode.SELECT) public Set<StockDailyRecord> getStockDailyRecords() { return this.stock

假设我使用下面的Eager+select(fetchingstatergy),collectins将被延迟加载还是被急切加载

@OneToMany(fetch = FetchType.Eager, mappedBy = "stock")

        @Fetch(FetchMode.SELECT)
        public Set<StockDailyRecord> getStockDailyRecords() {
            return this.stockDailyRecords;
        }
@OneToMany(fetch=FetchType.Eager,mappedBy=“stock”)
@Fetch(FetchMode.SELECT)
公共集getStockDailyRecords(){
返回此.StockDailRecords;
}

收藏将被热切期待

我们有两个概念:应该提取什么和应该如何提取 取来。有两种不同且互补的调整策略, 全局和每个用例