出现错误:The method getCriteriaBuilder() is undefined for the type EntityManager.
程序出现以下错误提示:
The method getCriteriaBuilder() is undefined for the type EntityManager.
这是由于使用了javaEE5导致的,javaEE5是不包含以上方法的。解决方法有两种:
1、升级为javaEE6,或引入javaEE6的jar包。
2、引入hibernate-jpa-2.0-api.jar包 。
还没有评论,来说两句吧...