我添加了以下注释,以启用缓存到我的EJB3实体之一,用ehCache测试缓存,其中我使用Hibernate作为持久性提供程序:import org.hibernate.annotations.Cachename = "F.findAll", query = "SELECT f FROM F f")}) .....我在persi
我在运行测试时看到了这一点。我确信数据库连接正在建立(或尝试),因为当我没有包含密码时,它最初会给出一个错误,然后它会抱怨,因为该名称的数据库不存在。Could not open JPA EntityManager for transaction; nested exception is java.lang.NoSuchMethodError: org.hibernate.Session.getFlushMode()Lorg/hibernate/FlushMode;
at org.springf