公司規(guī)模的不斷擴大令行政部的管理工作日益繁重,所以其迫切需要開發(fā)一個MIS(Management Information System)系統(tǒng)來使其行政管理規(guī)范化、制度化、所需各種數(shù)據(jù)標(biāo)準(zhǔn)化。在大型系統(tǒng)的開發(fā)過程中,使用Hibernate作為業(yè)務(wù)邏輯層和數(shù)據(jù)庫層之間的持久層,實現(xiàn)對象到關(guān)系數(shù)據(jù)庫的持久存儲,不但解決了對象模型與關(guān)系模型之間的“阻抗不匹配”問題,也提高了項目開發(fā)的效率。所以,某公司決定開發(fā)基于Hibernate技術(shù)的Equipment Management System。
Hibernate是目前最流行的開源對象關(guān)系映射框架,是面向?qū)ο蟮某绦蛟O(shè)計語言和關(guān)系數(shù)據(jù)庫之間的橋梁。它對JDBC作了輕量級的封裝,不僅提供ORM映射服務(wù),還提供數(shù)據(jù)查詢和數(shù)據(jù)緩存功能。作為優(yōu)秀的持久層框架實現(xiàn),Hibernate提供了強大、高性能的對象到關(guān)系數(shù)據(jù)庫的持久化服務(wù),其良好的持久層映射機制,使得操作完全面向?qū)ο蟆?br />
本文研究了Hibernate技術(shù),分析了Hibernate的對象關(guān)系映射框架實現(xiàn)機制及其工作原理。最后,結(jié)合實踐,介紹了基于Hibernate技術(shù)的Equipment Management System的開發(fā)。
關(guān)鍵詞:Hibernate,持久化,對象關(guān)系映射
Hibernate –Based
Equipment Management System Development
Abstract
With the company expanding the scale, the workload of Administration Department is increasing. So their urgent need is to develop a MIS (Management Information System), which makes the administration to be standardization and institutionalization. In the process of large systems development, it uses Hibernate between business logic layer and database layer as the persistence layer, implementing the persistent store from objects to relationship database. It solves the impedance mismatch difficulties between the object model and the relationship model, and improves the efficiency of the project development. Therefore, the company decides to develop Equipment Management System of Hibernate-based.
Hibernate is the most popular open source object-relational mapping framework, and also a bridge between the object-oriented programming language and the relational database. It makes JDBC a lightweight package. And, it not only provides ORM mapping services, but also provides data query and data cache function. As a good framework for achieving persistence layer, Hibernate provides a powerful, high-performance persistence service from objects to the relational database. Its good mechanism for persistence mapping makes operations object-oriented fully.
In this paper, some research has been done on the Hibernate technology, and also analysis object-relational mapping framework for the realizing mechanism of the Hibernate and its working principles. Finally, according to practices, it introduces the development of Equipment Management System, which is based on Hibernate technology.