配置2个表的一对多关系产生异常Association references unmapped class: gcc.Hibernate.TestOrder

异常Association references unmapped class: gcc.Hibernate.TestOrderTest.javapackage com.gcc.Hibernate

异常Association references unmapped class: gcc.Hibernate.TestOrder

Test.java
  package com.gcc.Hibernate;
  public class Test implements java.io.Serializable {
  private String id;
  private String password;
  private Integer age;
  private Date birthday;
  private Set testOrder = new HashSet(0);
  public Test() { }
  public void setTestOrder(Set s){
  testOrder = s;
  }
  public Set getTestOrder(){
  return testOrder;
  }
  public Test(String id, String password) {
  this.id = id;
  this.password = password;
  }
  public Test(String id, String password, Integer age, Date birthday) {
  this.id = id;
  this.password = password;
  this.age = age;
  this.birthday = birthday;
  }
  public String getId() {
  return this.id;
  }
  public void setId(String id) {
  this.id = id;
  }
  public String getPassword() {
  return this.password;
  }
  public void setPassword(String password) {
  this.password = password;
  }
  public Integer getAge() {
  return this.age;
  }
  public void setAge(Integer age) {
  this.age = age;
  }
  public Date getBirthday() {
  return this.birthday;
  }
  public void setBirthday(Date birthday) {
  this.birthday = birthday;
  }
  }
  ///////////////////////////
  TestOrder.java
  package com.gcc.Hibernate;
  public class TestOrder implements java.io.Serializable {
  public TestOrder() {
  }