![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate学习笔记
文章平均质量分 75
chen106106
这个作者很懒,什么都没留下…
展开
-
Second-level cache is not enabled for usage 错误(转)
今天在使用Hibernate时,出现了Could not instantiate cache implementation的错误,我是在使用Hibernate tools时报的错误,应该运行时也会出现这样的错误,异常堆栈:org.hibernate.HibernateException: Could not instantiate cache implementationat ...原创 2011-08-22 23:27:41 · 217 阅读 · 0 评论 -
Hibenate无法建表:ERROR SchemaExport:2
在对应的配置文件中如果 或者的话,就要把type改成int。如果 就默认的string类型就可以了。原创 2011-08-23 21:55:07 · 80 阅读 · 0 评论 -
Hibernate访问多数据库
一、 Hibernate 访问数据库时加载的过程对于大多数使用 Hibernate 的朋友来说,通常使用一下方式来获得 Configuration 实例: Configuration configure = new Configuration().configure();在 Hibernate 中, Configuration 是 hibernate 的入...原创 2011-12-19 10:09:58 · 77 阅读 · 0 评论 -
struts2.0+spring2.5+hibernate3.3
我的开发工具是MyEclipse8.5 ,整合ssh的步骤一般是spring,hibernate,struts 。spring和hibernate都是通过MyEclipse工具自动帮助生成的,而struts用的自己在官网下载的完整的struts2.0的包,spring与hibernate的整合在项目中通过菜单栏上的 MyEclipse->ProjectCapabilities->A...原创 2011-11-13 23:17:57 · 99 阅读 · 0 评论 -
Hibernate各种主键生成策略与配置详解
转载:原文地址:http://code.google.com/p/happy-growth-development/wiki/Hibernate#1%E3%80%81assigned1、assigned主键由外部程序负责生成,在save()之前必须指定一个。Hibernate不负责维护主键生成。与Hibernate和底层数据库都无关,可以跨数据库。在存储对象前,必须要使用主...原创 2012-06-20 17:28:10 · 61 阅读 · 0 评论