org.hibernate.hql.ast.QuerySyntaxException: XXXX is not mapped 可能原因: 1.实体与数据库表没对应 2.hql语句中对象名称写错(写成了表名)