![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java-Hibernate
redsky200905
这个作者很懒,什么都没留下…
展开
-
Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Cac
Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/Cacheable原来是需要hibernate下面的JPA的包啊。导入就可以了。原创 2011-04-27 21:40:46 · 108 阅读 · 0 评论 -
关于Annotation包的引用问题
想找hibernate annotation的jar包,结果现在新版本已经集成了该能力(我现在用的hibernate3.6的,在[url]http://sourceforge.net/projects/hibernate/files/[/url])原创 2011-04-28 20:58:05 · 278 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: javax/transaction/Synchronization
出现这个错误 java.lang.NoClassDefFoundError: javax/transaction/Synchronization 是确实包jta.jar,采用Maven(我已经很少使用Ant了)搜索javax.transaction jta,选择一个即可...原创 2011-09-28 15:34:22 · 226 阅读 · 0 评论 -
org.hibernate.DuplicateMappingException: Duplicate class/entity mapping
org.hibernate.DuplicateMappingException: Duplicate class/entity mapping因为是采用了两个源.cfg.xml的配置,当然也配置了两个SessionFacotory此处遇到的问题通过了,另外是因为使用了H2,启动时创建无所谓create-drop替换validate解决...原创 2011-07-22 10:04:23 · 391 阅读 · 0 评论 -
No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyIn
No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature...原创 2012-01-14 11:33:46 · 159 阅读 · 0 评论