java.lang.ClassNotFoundException: javax.persistence.Cacheable

Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Cacheable

Caused by: java.lang.ClassNotFoundException: javax.persistence.Cacheable

错误原因,javax.persistence.Cacheable 是 JPA 2.0 规范中的东西!

需要加入hibernate-distribution-3.5.0-Final/lib/jpa目录下的hibernate-jpa-2.0-api-1.0.0.Final.jar

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/nokiaisacat/archive/2010/05/07/5566566.aspx

你可能感兴趣的:(java.lang.ClassNotFoundException: javax.persistence.Cacheable)