首页 > 代码库 > An association from the table content refers to an

An association from the table content refers to an

今天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文件时,就会出现这样的错误!

An association from the table content refers to an