hibernate.hql是对类进行查询的, 比如EMPLOYEES是表名,Employee是类名, 所以要改成 session.createQuery("from Employee").list().iterator();