基于hibernate的j2ee数据持久层的设计与实现 design and realization of j2ee data persistence layer based on hibernate.pdfVIP
- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于hibernate的j2ee数据持久层的设计与实现 design and realization of j2ee data persistence layer based on hibernate
计 算 机 与 现 代 化
2007 年第3 期 JISUANJI YU XIANDAIHUA 总第139 期
1006-2475(2007 )03-0064-03
文章编号:
基于Hibernate 的J2EE 数据持久层的设计与实现
刘 金,徐 苏,冯豫华
(南昌大学信息工程学院,江西 南昌330029 )
摘要:在当今关系数据库仍为主流数据库的时候,持久层技术的应用越来越得到重视。本文通过对目前主流的持久层解
决方法的比较,结合电子政务应用系统实例,提出了一种性能更优的基于J2EE 的Hibernate 解决方案。
关键词:Hibernate ;数据持久层;JDBC ;对象关系映射
TP311. 1 文献标识码:A
中图分类号:
Design and Realization of JZEE Data Persistence Layer Based on Hibernate
LIU Jin ,XU Su ,FENG Yu-hua
(Information Engineering Schooi ,Nanchang University ,Nanchang 330029 ,China )
Abstract :Persistence iayer technoiogy is increasingiy important whiie reiationai database is stiii dominated today. By comparing
with the main soiutions for data persistence iayer currentiy ,associating with the case of E-government system ,the Hibernate soiu-
tion based on J2EE with better performance is put forward.
Key words :Hibernate ;data persistence iayer ;JDBC ;O/ R mapping
方法可以从根本上消除应用程序和关系数据库的耦
0 引 言
合,使得数据访问对于应用程序的源代码是透明的。
近年来,在企业级应用开发环境中,面向对象的 如果数据库的库表结构发生改变,只需要对持久层的
开发方式已成为主流,而关系数据库是目前使用最广 配置文件做适当修改,不会对应用程序造成影响。
泛的数据库,因此,在开发过程中通常会采用面向对
1 几种数据持久层的解决方案
象技术和关系数据库相结合的方式。由于面向对象
技术和关系数据理论基于不同的理论基础,使得两者 持久层能够在对象/ 关系数据库之间提供一个成
在协同工作时会出现阻抗不匹配的现象[1]。通过直 功的映射解决方案,弥补面向对象技术和关系数据库
接内嵌SOL 语句或者数据访问类的方法可以解决面 理论这两者之间的差异。目前较为常用的持久层的解
向对象技术和关系数据库间不区配的问题。前者是 决方案有好几种方法,如JDBC、实体EJB 和JDO 等。
通过直接在类的源代码中嵌入SOL 语句来实现对象 每一种实现数据持久层的方案都有自身的优缺点。
到关系数据库的映射和存储,这种方法简单,易于实 JDBC 可以说是访问持久数据层最原始、最直接
现,但它造成了应用程序和数据库结构的直接耦合, 的方法。在企业级应用开发中,可以使用DAO 模式
违反了软
您可能关注的文档
- 基于fluent的乳化液配比搅拌器的选择与研究 selection and research on emulsion compounding agitator based on fluent.pdf
- 基于fluent的孔板消减气流脉动的数值模拟 numerical simulation of orifice plate reducing gas pulsation based on fluent.pdf
- 基于fluent的偏转板射流伺服阀的前置级仿真 simulation based on fluent for pre-stage of deflector jet servo valve.pdf
- 基于fluent的喷嘴孔型两相流场模拟分析 simulation analysis of two-phase flow field inside pass of nozzle base on fluent.pdf
- 基于fluent的气固混合装置输送特性与结构研究 study on the transport characteristics and structure of gas solid mixing device based on fluent.pdf
- 基于fluent的吸叶机风盘数值模拟分析 the numerical simulation analysis on the wind disk of leaf vacuums machine based on fluent.pdf
- 基于fluent的油膜轴承定量供油喷嘴参数化研究 parameterization on nozzle supply based on fluent filmatic bearing.pdf
- 基于fluent的锥形节流阀数值模拟和气穴分析 numerical simulation and cavitation analysis of taper throttlingvalve based on fluent.pdf
- 基于fluent的双卧轴搅拌器数值模拟研究 numerical simulation research of double horizontal shaft mixer based on fluent.pdf
- 基于fluent的橡胶挤出机流道设计 design of extruder flow channel based on fluent.pdf
- 基于hht的电能质量多扰动信号检测方法 power quality disturbance signal detection method based on hht.pdf
- 基于hessian矩阵的手指静脉图像分割 finger vein image segmentation based on hessian matrix.pdf
- 基于hi3516的矿井运动目标检测系统的设计与实现 design and implementation of moving obj ects detection system in coal mines based on hi3 5 1 6.pdf
- 基于his数据库的门诊患者诊疗行为分析研究 outpatient clinic behavior analysis based on his database.pdf
- 基于hjc本构模型的煤岩shpb实验数值模拟 numerical simulation of shpb tests for coal by using hjc model.pdf
- 基于hels方法的噪声诊断技术研究 research on noise diagnosis technology based on hels method.pdf
- 基于hits算法的微博用户可信度评估 evaluation of microblog users′credibility based on hits algorithm.pdf
- 基于hilbert-huang变换的海洋平台结构损伤识别研究 study on damage detection of offshore platforms based on hilbert-huang transform.pdf
- 基于hj-1b数据的作物根系土壤水分遥感监测 monitoring soil moisture in root-system zone based on hj-1b data with remote sensing technology.pdf
- 基于hog特征的优化区域模板匹配检测 template matching detection for optimized region based on hog features.pdf
文档评论(0)