An association from the table content refers to an

原创
2014/12/24 18:43
阅读数 752

今天hibernate报了一个错:An association from the table content refers to an unmapped class:com.blog.content.kind

经查,发现是content.hbm.xml里面的Kind类全名错了。由于之前改动过数据库表,在content表里引入了外键kind_fk,然后用myeclipse自动生成Content类和相应的hbm.xml文件时,就会出现这样的错误!

展开阅读全文
加载中

作者的其它热门文章

打赏
0
2 收藏
分享
打赏
0 评论
2 收藏
0
分享
返回顶部
顶部