//StudentDAO中的方法
public boolean getPoList(String hql, List poList){
boolean result = false;
try{
poList = getHibernateTemplate().find(hql);
result = true;
}catch(Exception ex){
ex.printStackTrace();
}
return result;
}
//StudentService中的方法
public boolean A{
boolean result = false;
String hql = "FROM Student WHERE isDel='N'";
List poList = new ArrayList();
result = studentDAO.getPoList(hql, poList);
//使用poList的操作省略。。。。。。
return result;
}
debug时在getPoList方法中poList里面有内容,到达方法A时,poList为什么为没有内容(里面全部存放的是null)