因为 String sql2 = "select s from Student s where s.clazz.name=:name"; 此处的 Student 应该为类名。hql语法里面是POJO对象而不是table 相关文章: 2022-12-23 2021-11-18 2021-09-24 2022-12-23 2021-06-14 2022-12-23