org.hibernate.AnnotationException是什么错误!

licc5839458059 2011-05-26 09:54:46
org.hibernate.AnnotationException: A Foreign key refering com.licc.entityBean.Company from com.licc.entityBean.Staff has the wrong number of column. should be 3


-- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=EJBOneToMany.jar,unitName=EJBcompany
State: FAILED
Reason: org.hibernate.AnnotationException: A Foreign key refering com.licc.entityBean.Company from com.licc.entityBean.Staff has the wrong number of column. should be 3
I Depend On:
jboss.jca:name=MySqlDS,service=DataSourceBinding
Depends On Me:
jboss.j2ee:jar=EJBOneToMany.jar,name=CompanyDaoBean,service=EJB3

ObjectName: jboss.j2ee:jar=EJBOneToMany.jar,name=CompanyDaoBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=EJBOneToMany.jar,unitName=EJBcompany

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: persistence.units:jar=EJBOneToMany.jar,unitName=EJBcompany
State: FAILED
Reason: org.hibernate.AnnotationException: A Foreign key refering com.licc.entityBean.Company from com.licc.entityBean.Staff has the wrong number of column. should be 3
I Depend On:
jboss.jca:name=MySqlDS,service=DataSourceBinding
Depends On Me:
jboss.j2ee:jar=EJBOneToMany.jar,name=CompanyDaoBean,service=EJB3
...全文
452 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧