package hello.model.dao.hibernate; import java.util.List; import hello.model.Employee; import hello.model.dao.EmployeeDao; import org.springframework.orm.hibernate3.support.HibernateDaoSupport; public class EmployeeDaoImpl extends HibernateDaoSupport implements EmployeeDao { @SuppressWarnings("unchecked") @Override public List getAllEmployees() { return (List) getHibernateTemplate().find( "from Employee" ); } }