hibernate
iteye_17908
这个作者很懒,什么都没留下…
展开
-
hibernate几个核心API及其查询分析
(一) org.hibernate.cfg.Configuration类 读取配置文件并创建唯一的SessionFactory对象.(一般,程序初始化hibernate时创建.) Configuration config=new Configuration().config(); //自动查找CLASS指定路径下的hibernate.cfg.xml文件...原创 2008-12-02 10:07:16 · 137 阅读 · 0 评论 -
spring里配置使用hibernate的二级缓存几步
.在spring的配置文件中 applicationContent.xml,hibernate部分加入 xml 代码 [code="java"]org.hibernate.cache.EhCacheProvider true [/code] 2.为 hibernate的配置文件中设置cache策略 xml 代码 [code="java"] [/code...原创 2008-12-02 10:12:26 · 89 阅读 · 0 评论