
ssh
sunnyjwh
这个作者很懒,什么都没留下…
展开
-
处理mysql数据库与hibernate中文乱码问题
问题描述: 通过hibernate向数据库中插入的中文数据在数据库中显示?或乱码; 数据库中中文正常,通过hibernate访问时不能正常显示。解决方法: 1在hibernate.cfg.xml中添加下面语句 true UTF-8 2修改mysql的配置文件my.ini中的default-characte原创 2012-07-25 15:02:18 · 661 阅读 · 0 评论 -
【转】hibernate 错误:org.hibernate.HibernateException: Unable to get the default Bean Validation factory
前几天看了一下教程 ,自己试着配置了一下web下的hibernate,悲剧的时,出错了提示下面:[java] view plaincopy信息: Hibernate Validator bean-validator-3.0-JBoss-4.0.2Exception in thread "main" org.hibernate.Hibernat转载 2012-07-25 14:20:43 · 2364 阅读 · 1 评论 -
【转】myeclipse下 Generating Artifacts 问题解决
1、在myeclipse中使用hibernate进行“Hibernate Reverse Engineering”报如下错:An internal error occurred during: "Generating Artifacts".Path must include project and resource name: /找到工程下的 .myhibernatedata转载 2012-07-25 20:19:49 · 5464 阅读 · 1 评论