hibernate延迟加载org.hibernate.LazyInitializationException: failed to lazily initialize a collection of .
publicstaticvoidmain(String[]args){DeptEntitydept=getDept("402882e762ae888d0162ae888e420000");//dept.getEmp()得到子表的记录集合System.out.println(dept.getEmp());}privatestaticDeptEntitygetDept(Stringdid){Sessi