use*_*722 28 hibernate
session.clear和evict方法之间的区别在于hibernate.Both是从session中删除实例的detatched对象.当我在hibernate中使用session.clear和session.evict时.
Rya*_*art 53
evict()从会话中驱逐单个对象.clear()驱逐会话中的所有对象.调用clear()就像在与会话关联的每个对象上调用evict().
归档时间:
13 年,9 月 前
查看次数:
35524 次
最近记录:
9 年,5 月 前