因为 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
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-05-11
  • 2022-12-23
  • 2021-09-19
  • 2022-02-28
相关资源
相似解决方案