使用hibernate时出现 staff is not mapped [from staff a where a.username=?];

我检查之后发现数据库内的字段名和我建立的实体类和映射类的字段名相同,所以不存在是字段名的问题引起的。它的错误语句是: List<Staff> list= (List<Staff>) this.getHibernateTemplate().find("from staff a where a.username=?", username);其中staff是我数据库中表的名字。我建立的实体类是大写的St
相关文章
相关标签/搜索