年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
青否云后端云 - wallimn
- vipbooks
- gashero
- wy_19921005
- benladeng5225
- fantaxy025025
- e_e
- javashop
- sam123456gz
- zysnba
- tanling8334
- arpenker
- kaizi1992
- xpenxpen
- lemonhandsome
- xiangjie88
- ganxueyun
- xyuma
- wangchen.ily
- Xeden
- jh108020
- zhanjia
- johnsmith9th
- zxq_2017
- jbosscn
- forestqqqq
- ajinn
- daizj
- wjianwei666
- ranbuijj
- 喧嚣求静
- silverend
- sichunli_030
- kingwell.leng
- lchb139128
- kristy_yy
- lich0079
- jveqi
- lzyfn123
- java-007
- sunj
- yeluowuhen
- lerf
- xiaoxinye
- flashsing123
- lxguy
- zhangjijun
最新文章列表
框架学习之Hibernate 第九节 缓存原理与分析
1. 一级缓存:Session中共享
测试:可以通过查看输出的 select 语句的数目来测试Hibernate中的Session级的缓存
使用缓存的三种操作:放,取,删
会从缓存中拿数据的方法:get,load,iterate [id为native(自增长的形式的话,save方法是不会放入到一级缓存或者二级缓存中的)]
会向缓存中放入数据的方法:save,update,saveOrU ...
a different object with the same identifier value was already associated with th
解决a different object with the same identifier value was already associated with the session错误
Category是树形结构,以下是实现修改功能的代码,一开始,我用了getHibernateTemplate().update()
结果出现a different object wi ...