![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hibernate
M_fans
这个作者很懒,什么都没留下…
展开
-
Hibernate异常(1):Associations marked as mappedBy must not define database mappings
异常:Associations marked as mappedBy must not define database mappings like @JoinTable or @JoinColumn hibernate升级到3.5版本或者更新的版本时出现这样的异常,举个例子: private List<User> user; @OneToMany(fetch = Fetc...原创 2013-03-19 16:18:00 · 569 阅读 · 0 评论 -
Hibernate异常(2):javax.persistence.OneToMany.orphanRemoval()Z
异常:javax.persistence.OneToMany.orphanRemoval()Z Hibernate升级到4.1.4,项目中使用了hibernate-jpa-2.0-api-1.0.0.Final.jar,结果抛出了以上异常,发现抛出异常有两种可能: 1)项目中使用了javaee的jar包 2)项目中使用了ejb的jar javaee或者ejb的jar包与hibernate...原创 2013-03-19 16:28:27 · 191 阅读 · 0 评论 -
Hibernate异常(3):org.hibernate.cache.NoCacheRegionFactoryAvailableException
升级Hibernate到4.1,抛出异常: Caused by: org.hibernate.cache.NoCacheRegionFactoryAvailableException: Second-level cache is used in the application, but property hibernate.cache.region.factory_class is n...原创 2013-03-19 17:08:32 · 877 阅读 · 0 评论