摘 要
Hibernate是一个开放
源代码的对象-关系映射框架,它对JDBC进行了非常轻量级的对象封装,使得
Java程序员可以随心所欲的使用对象编程思维来操纵数据库。然而Hibernate的发展出现了一个危机阶段,许多Hibernate开发人员用"暴差"来形容Hibernate的性能,所以是否用Hibernate来做数据的持久层,以成为不少程序开发人员的难题。目前关于Hibernate性能方面,虽然零星有个短篇予以讲诉,但是还没有专门的一个书籍或论文来讲诉有关Hibernate 的性能。所以对于Hibernate性能分析及优化配置以成为亟待解决的
问题。对Hibernate性能分析及优化配置研究,不仅能够为已经使用Hibernate开发项目的程序员提供优化
方案,而且能够为没有使用Hibernate开发的程序员提供开发经验。本文拟从Hibernate与JDBC的性能比较,Hibernate性能测试及优化方案三个角度,并运用对比论证,列实例、摆依据,理论与实践结合,通过图书
查询、网上浏览等方法来收集资料,并拟运用Hibernate,JDBC及数据库等相关知识来撰写论文。
Hibernate Performance Analysis and Optimized Disposition
Abstract
Hibernate is an open source code object-relations mapping frame, ithas carried on the unusual lightweight object seal to JDBC, causes theuser programming thought which the Java programmer may have one's wishto operate the database. However the Hibernate development appeared a crisis stage, many Hibernate development personnel uses "the storm to be bad" describes Hibernate the performance, whether therefore uses Hibernate to make the data the lasting level, into many procedures development personnel's difficult problem. At present about Hibernate performance aspect, although fragmentarily has a short article to say sues, but does not have special books orthe paper says sues related Hibernate the performance. Therefore into urgently awaits the question regarding the Hibernate performance analysis and the optimized disposition which is solved. To Hibernate performance analysis and optimized disposition research,not only can for the programmer which already used the Hibernate development project provide the optimized plan, moreover could for the programmer which has not used the Hibernate development project provide the development experience. This article draws up from Hibernate and the JDBC performancecompares, the Hibernate performance test and the optimized plan threeangles, and using the contrast proof, arrange in order the example,the pendulum basis, the theory and the practice union, through method data collection and so on books inquiry, on-line browsing, and plansto utilize Hibernate, correlation knowledge and so on JDBC anddatabase composes the paper.
目 录
摘 要 I
Abstract II
引 言 2
1 Hibernate的概述 3
1.1 Hibernate 概念 3
1.2 Hibernate的发展 3
1.3 Hibernate实例 4
2 Hibernate与jdbc的性能比较 11
3 Hibernate性能优化方案分析 21
3.1 Hibernate性能调优要点 21
3.2 Hibernate优化策略及案例 22
3.2.1 什么是缓存 22