Caused by: org.hibernate.MappingException: Foreign key (FKACD5A5886253DC48:bbs_pl [id])) must have same number of columns as the referenced primary key (bbs_pl [m_id,id])大概意思是:外键必须有相同数量的列作为引用的主键。
是什么东西?我的两个表主要属性:
bbs_message:
id  我定义为主键
. ..
..
bbs_pl
id  我定义为主键...
..
..
m_id 引用上面的表bbs_message的 id 作外键关联是不是我这样弄出错了?