下面试Employee.hbm.xml文件<hibernate-mapping package="com.sws.model">
<class name="Employee" table="tb_emp">
<id name="id" column="emp_id" >
<generator class="native"/>
</id>
<property name="name" column="emp_name" type="string"/>
<property name="password" column="emp_pass" type="string"/>
<property name="salary" column="emp_salary" type="float"/>
<!-- 与Manager双向N-1 -->
  <many-to-one name="mgr" class="Manager" column="mgr_id" lazy="false" fetch="join"/> 
<!-- 与Attend双向1-N -->
<set name="attend" inverse="true">
<key column="emp_id"/>
<one-to-many class="Attend"/>
</set>
<!-- 与Payment双向1-N -->
<set name="pay" inverse="true">
<key column="emp_id"/>
<one-to-many class="Payment"/>
</set>

<!-- 子类Manager -->
<joined-subclass name="Manager" table="tb_mgr">
<key column="emp_id"/>
<property name="dept" column="mgr_dept" not-null="true"/> 
<!-- 与Employee 1-N -->
  <set name="emp" inverse="true">
<key column="mgr_id" />
<one-to-many class="Employee"/>
</set>
<!-- 双向1-N -->
<set name="check" inverse="true">
<key column="mgr_id"/>
<one-to-many class="CheckBack"/>
</set>
 </joined-subclass> 
</class>
</hibernate-mapping>Employee类private Integer id;
private String name;
private String password;
private float salary;
private Manager mgr;
private Set<Attend> attend = new HashSet<Attend>();
private Set<Payment> pay = new HashSet<Payment>();

public Set<Attend> getAttend() {
return attend;
}
public Set<Payment> getPay() {
return pay;
}
public void setPay(Set<Payment> pay) {
this.pay = pay;
}
public void setAttend(Set<Attend> attend) {
this.attend = attend;
}
public Manager getMgr() {
return mgr;
}
public void setMgr(Manager mgr) {
this.mgr = mgr;
}
public void setId(Integer id)
{
this.id = id;
}
public Integer getId()
{
return this.id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public float getSalary() {
return salary;
}
public void setSalary(float salary) {
this.salary = salary;
}我是用spring来管理的,通过映射文件去创建数据库,启动tomcat创建的时候就报了这样的错,弄了很久没能解决。发现如果把子类的映射文件去掉就可以运行,不知道为什么,一加上就报这错了。请各位帮忙看看。谢谢了!