
hibernate
文章平均质量分 82
梁丞胤
javaer
展开
-
myeclipse8.6整合SSH(图文)
整合SSH思路: 1. 确定顺序:spring->structs->hibernate,或者structs->spring->hibernate,原因我认为,spring的出现影响到hibernate生成的文件,比如sessionFactory,所以一般,包括网上其他很多的教程,都是采用把hibernate放在spring后面。 2. 版...原创 2012-05-27 00:37:59 · 180 阅读 · 0 评论 -
session.merge ()方法的使用
问题情况:使用hibernate来进行对对象的保存操作时,出现了exception,导致数据保存不成功,具体报错如是: Exception in thread "main" org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associat...原创 2012-03-14 23:54:32 · 1683 阅读 · 0 评论 -
hibernate使用配置小结-手动、自动两种.
<!--[if !supportLists]-->1. <!--[endif]-->添加jar包 一、 Hibernate手动配置过程 1. 添加jar包 如果是要使用annotation的话(hibernate3.0以上版本),则要添加以下jar包 jar包用处具体参考ht...原创 2012-03-15 14:07:50 · 136 阅读 · 0 评论