出现错误:The method getCriteriaBuilder() is undefined for the type EntityManager.

朴灿烈づ我的快乐病毒、 2022-09-20 06:06 375阅读 0赞

程序出现以下错误提示:
The method getCriteriaBuilder() is undefined for the type EntityManager.

这是由于使用了javaEE5导致的,javaEE5是不包含以上方法的。解决方法有两种:
1、升级为javaEE6,或引入javaEE6的jar包。
2、引入hibernate-jpa-2.0-api.jar包 。

发表评论

表情:
评论列表 (有 0 条评论,375人围观)

还没有评论,来说两句吧...

相关阅读