Hibernate异常: org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User]
Hibernate异常:org.hibernate.hql.ast.QuerySyntaxException: User is not mapped [from User]1、出现该错误的情况分析1,配置文件没有加载到hibernate的实体列表里面2,映射文件的字段与数据库字段不一致,或者名称不一致导致hql 是 有专门的语法的,不完全同于sql。切记HQL是大小写敏感的,这点不同于SQL。
…
原创
2017-04-17 22:39:20 ·
805 阅读 ·
0 评论