日期:2014-05-16 浏览次数:20528 次
public List<CollegeMajors> queryByCollegesId(CollegeMajors e) throws Exception { List<CollegeMajors> collegeMajorsList = null; collegeMajorsList = this.hibernateTemplate .findByNamedParam( "from CollegeMajors as collegeMajors where collegeMajors.collegesId=:collegesId", "collegesId", e.getCollegesId()); if (collegeMajorsList == null) { collegeMajorsList = new ArrayList<CollegeMajors>(); } return collegeMajorsList; }