日期:2014-05-16 浏览次数:20746 次
public List<City> findAllCity(Integer pid){
List<City> list=null;
try {
String hql="from city where pid="+pid;
list=getSession().createCriteria(hql).list();
} catch (Exception e) {
e.printStackTrace();
}
return list;
}