摘要: 1、设置成即时加载2、查询语句使用join fetchfrom Coupon coupon left join fetch coupon.users where coupon.id=:id coupon的List users属性是懒加载,但是查询结果需要users的内容,则使用left join f... 阅读全文
posted @ 2014-08-14 18:27 行云有影 阅读(788) 评论(0) 推荐(0) 编辑