Hibernate传入两个参数时的写法

public List findByEd(Long eId,String timeDay){


  Object[] praram = new Object[]{eId,timeDay};


  return getHibernateTemplate().find("from DayPlan where employeeId = ? and timeDay = ?",praram);
 }

你可能感兴趣的:(Hibernate,String,list,object)