@ManyToMany(fetch = FetchType.LAZY) 延迟加载,等于xml配置文件中的lazy = true @ManyToMany(fetch = FetchType.EAGER) 立即加载,等于xml配置文件中的lazy = false
Hiberante annotation 设置延迟加载
猜你喜欢
转载自zzc1684.iteye.com/blog/1192529
今日推荐
周排行