Hibernate: XXXX is not matted
1. HQL里面查询的from表名要是映射的对应实体类的名称,而不是数据库里面的表名.public List<Users> selectUsersAll() {
String hql = "from Users as u";
Query query = getSession().createQuery(hql);
return query.list();
}2....
原创
2018-04-27 08:48:41 ·
187 阅读 ·
0 评论