public UAdmin getAdminByUsername(String username) { String hql = "from UAdmin where username = ?"; return (UAdmin) adminDao.findUnique(hql, username); }
public UAdmin getAdmin(int id) { return adminDao.get(id); }