摘要: 1.从返回结果上对比: load方式检索不到的话会抛出org.hibernate.ObjectNotFoundException异常; get方法检索不到的话会返回null; 2.从检索执行机制上对比: load方法的执行则比较复杂首先查找session的persistent Context(一级缓 阅读全文
posted @ 2017-07-27 23:38 玛旁雍错 阅读(5549) 评论(0) 推荐(0) 编辑