public List<Attend> findByEmpAndDutyDay(Employee emp , String dutyDay)
{
Object[] args = {emp , dutyDay};
return (List<Attend>)getHibernateTemplate()
.find("from Attend as a where a.employee = ? and a.dutyDay = ?" , args);
}
{
Object[] args = {emp , dutyDay};
return (List<Attend>)getHibernateTemplate()
.find("from Attend as a where a.employee = ? and a.dutyDay = ?" , args);
}
query.serParamter(0,10)
0是第一个问好
10是值