could not initialize proxy - no Session

只需要把关联类配置lazy='false',也就是立即加载

例如:

public class stu{

  private int stuid;

}

 

public class score{

   private stu s;

}

 

stu.cfg.xml把lazy='false'

posted @ 2014-12-03 23:59  单方面  阅读(199)  评论(0)    收藏  举报