![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
文章平均质量分 58
盈火虫
这个作者很懒,什么都没留下…
展开
-
hibernate当中的事务操作
(1)事务当中的概念(2)事务的特点(ACID)(3)事务的并发问题脏读:一个事务读取到另一个事务为提交的数据不可重复读:一个事务读取到另一个事务已经提交的update的数据,导致在一个事务中的多次查询的结果不一致虚读|幻读:一个事务读到了另一个事务已经提交的insert的数据,导致在一个事务中的多次查询结果不一致。(4)由此提出事务的隔离级别,分为4个,分别为:读未提交,读已提交,可重复读,串行...原创 2018-02-26 15:01:07 · 244 阅读 · 0 评论 -
hibernate利用crm当中进行组合查询
(1)hibernate检索方式package cn.itcast.a_hql; import java.util.Arrays; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.Transaction; import org.junit....转载 2018-03-08 07:17:11 · 149 阅读 · 0 评论 -
hibernate session.get与session.load
package cn.itcast.lazy_able; import org.hibernate.Session; import org.hibernate.Transaction; import org.junit.Test; import cn.itcast.a_hibernateUtils.HibernateUtils; import cn.itcast.domain.Customer...原创 2018-03-08 16:44:04 · 234 阅读 · 0 评论