Font Size: a A A

Design Of Hibernate-based Object Persistence Layer And Its Improvement

Posted on:2007-12-30Degree:MasterType:Thesis
Country:ChinaCandidate:D M HengFull Text:PDF
GTID:2178360182488637Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In recent years, the method of object-oriented development has become the mainstream in the environment of enterprise level application development, while relational database is still the most widely used database. Therefore, in the course of development we usually use the way in which Object-Oriented technology and relational database are combined. Object-Oriented technology and relation data theory are based on different theories, which make them mismatch in teamwork. The Object-Relation Mapping is the core issue to make them work together. In the environment of development of enterprise application, the mapping of object and relation is a kind of job of consuming time. Hibernate is the ORM tool which is generally regarded by many programmer at present. It is the ORM tool of an opening source Java code. It carries on the object encapsulations of lightweight to JDBC. It makes Java programmer handle the database freely by using Object-Oriented programming thinking.The paper first introduces the technology of Object Persistence, compares with the most widely used three Persistence models, and then detailed analyzes the Object Persistence theory of Hibernate. Then the paper analyzes questions about designing and realizing the Hibernate-based system persistence layer from the application angle. Finally, the paper introduces the cache mechanism of Hibernate. The cache of Hibernate, which between Hibernate applications and databases is mainly used to reduce the frequency of visit database directly and then improves the performance of applications. For the regularly used enquiries expressions, Hibernate set a query cache which works when the enquiries items and the cache items fully match in grammar. However, such probability is very low in reality. So in the fact of our project, the paper proposes a cache improvement programme based on semantic cache. All these strategies enhance the usage of the cache, thus make the system more efficient.
Keywords/Search Tags:Persistence Layer, Object Persistence, Hibernate, Object-Relation Mapping, Performance Optimization, Cache
PDF Full Text Request
Related items