我是一步一步的学习,现在学习映射一对多,多对一的关系!
我的Student(学生)和Course(课程)是个一对多的关系,持久化类如下:
Student:
private Set courses=new HashSet();
 public Set getCourses(){
     return this.courses;
    }
    
    public void setCourses(Set courses){
        this.courses=courses;
    }原来就已经为Student写好了一个“保存”方法
public void doSave(Student s) throws Exception{
........................
session.save(s);//原来调用成功的现在可能是哪的问题,我再次调用这个方法,出现如下异常
Association references unmapped class: com.dot.tiky.Course//这是控制台的信息
java.lang.NullPointerException //这是JSP的信息,JSP调用文件一直没改,也很简单请帮我分析是哪的问题,需要代码,我再帖,谢谢~