org.hibernate.AnnotationException是什么错误!
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