hibernate持久化技术在网上购书系统中的设计与实现本科生毕业(设计)论文.doc
文本预览下载声明
学号 200532580013
密级________________
武汉大学本科毕业论文
Hibernate持久化技术在网上购书系统中的设计与实现
院(系)名 称:国际软件学院
专 业 名 称 :软件工程
学 生 姓 名 :皮攀
指 导 教 师 :
二○○九年六月
BACHELORS DEGREE THESIS
OF WUHAN UNIVERSITY
The design and implement of Hibernate persistence in the Online Bookstore
College :Wuhan University
Subject :International Software Engineering
Name : PiPan
Directed by : Professor
June 2009
郑 重 声 明
本人呈交的学位论文,是在导师的指导下,独立进行研究工作所取得的成果,所有数据、图片资料真实可靠。尽我所知,除文中已经注明引用的内容外,本学位论文的研究成果不包含他人享有著作权的内容。对本论文所涉及的研究工作做出贡献的其他个人和集体,均已在文中以明确的方式标明。本学位论文的知识产权归属于培养单位。
本人签名: 日期
摘 要
Hibernate是一个开放源代码的对象关系映射框架,它对JDBC进行了非常轻量级的对象封装,使得Java程序员可以随心所欲的使用对象编程思维来操纵数据库。 Hibernate可以应用在任何使用JDBC的场合,既可以在Java的客户端程序使用,也可以在Servlet/JSP的Web应用中使用,最具革命意义的是,Hibernate可以在应用EJB的J2EE架构中取代CMP,完成数据持久化的重任。本论文主要研究Hibernate的ORM(Object Relationship Mapping)框架、持久化功能以及Hibernate中的六个核心接口 Session、SessionFactory、Transaction、Query、Criteria和 Configuration,并对其进行相关实践。熟悉Hibernate中的框架结构、工作原理。结合Hibernate在网上购书网站上的实践,体会和研究Hibernate的ORM框架和持久化。利用Hibernate的ORM框架和持久化功能来实现网上购书网站的业务层的基本功能。利用Hibernate的相关技术来对其功能进行优化,达到高性能。
关键词:ORM持久化Hibernate的核心接口
ABSTRACT
Hibernate is a open source object-relation mapping framework, who encapsulates JDBC in a light-weight-object way, and this makes Java programmers operate database in the Object-Oriented way arbitrarily. The Hibernate could user in the place where the JDBC could use, both using in the client, and in the the application of Servlet/JSP, the most revolutionary mean is that, the Hibernate could be used in the J2EE with EJB instead of CMP, to accomplish the persistence.
The aim of this the paper is to study the ORM framework of the Hibernate, persistence and the six core interfaces in the Hibernate: Session, SessionFactory, Transaction, Query,Criteria and Configuration, and implement them in the project. Understanding the framework of the Hi
显示全部