![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
文章平均质量分 61
limeng1028
这个作者很懒,什么都没留下…
展开
-
第一个hibernate例子失败
User.hbm.xml中 ...2007-10-18 17:31:59 · 137 阅读 · 0 评论 -
Hibernate MySQL 中文乱码问题
环境:Hibernate 3.2 + MySQL5.0(MySQL的编码已设置为utf8)问题:通过Hibernate向MySQL写入中文后,通过Hibernate取回数据,在console中打印java对象显示正常。但在MySQL Query Browser中看到的是乱码,传给前端的Flex也是乱码。原因:Hibernate的基础还是JDBC,所以一样需要设置characterEncoding!...2007-10-22 01:18:43 · 75 阅读 · 0 评论 -
NonUniqueObjectException问题的解决
使用hibernate保存对象时,出现如下错误:org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [com.lee.dao.hibernate.User#12]网上查阅资料后,找到解决...2007-11-01 03:47:33 · 288 阅读 · 0 评论 -
关于Hibernate一个配置参数hibernate.hbm2ddl.auto
这两天在整理Spring + JPA(Hibernate实现),从网上copy了一段Hibernate连接参数的配置。<properties> <property name="hibernate.show_sql" value="true" /> <property name="hibernate.hbm2dd...原创 2009-06-03 17:37:56 · 206 阅读 · 0 评论