![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
晴天v1
这个作者很懒,什么都没留下…
展开
-
hibernate异常 org.hibernate.StaleObjectStateException: Row was updated or deleted
ted by another transaction (or unsaved-value mapping was incorrect): 我开始以为如果一个对象是持久的对象,就不能再去save了,因为DB里面已经有同样主键的记录了,实际上不是这样子的,到网上也查了一下这个异常,感觉还是不是很理解。 我写了个小例子测试了下: bean对象[code="java"] public class Post { // 编号 private long id; /2009-09-02 00:36:33 · 1246 阅读 · 0 评论 -
hql 关联查询
原创 2011-01-07 21:09:07 · 86 阅读 · 0 评论