
Hibernate学习
wanghua5774938
这个作者很懒,什么都没留下…
展开
-
2.An association from the table refers to an unmapped class:错误
出现这个错误从下面4个方面入手检查:1、检查你的hibernate.cfg.xml文件中是否添加了 <mapping resource="xxxx.hbm.xml"/> 2、检查你的hibernate.cfg.xml文件中的相关联的两个的顺序,可能有其中一个需要引用另一个,但是另一个却还没有编译,就是说被用作外键的表要放在前面3、检查你的*.hbm.xml文件名是原创 2013-04-04 16:09:08 · 1085 阅读 · 0 评论 -
1. hibernate 错误:org.hibernate.HibernateException: Unable to get the default Bean Validation factory
看hibernate的帮助文档,搜索validation,打开有道词典边翻译边看帮助文档,希望它能帮我,功夫不负有心人,终于让我找到了一段:[html] view plaincopy23.1.1. Adding Bean Validation To enable Hibernate's Bean Validation integ转载 2013-03-27 09:11:29 · 721 阅读 · 0 评论