org.hibernate.hql.ast.QuerySyntaxException: is not mapped 异常解决

org.hibernate.hql.ast.QuerySyntaxException: 某个实体类is not mapped 异常总结

网上找了很多贴去看,发现都不是我的情况,最后种种尝试后发现问题在于persistence.xml中没有把这个实体类包含进去,添加

<class>entity.Audittaskimpl</class>后解决错误,希望能对你有帮助

原文地址:https://www.cnblogs.com/panlongfeng/p/8061998.html