Font Size: a A A

Java Object Persistence With Hibernate

Posted on:2007-12-20Degree:MasterType:Thesis
Country:ChinaCandidate:L RongFull Text:PDF
GTID:2178360185477779Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Working with object-oriented software and a relational database can be cumbersome and time consuming in today's enterprise environments. Hibernate is an object/relational mapping tool for Java environments. The term object/relational mapping (ORM) refers to the technique of mapping a data representation from an object model to a relational data model with a SQL-based schema. Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but also provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.In this thesis, we first put forward the concept of "data persistence based on ORM technology", based on the analysis of the history and status quo of persistence layer. Secondly, the advantage of this concept will be discussed, by comparing with traditional persistence methods. Thirdly, we will further put forward the ORM frame of persistence layer based on Hibernate, describe their detailed architectures and API.Introducing the Hibernate foundation configuration and the foundation grammar in the chapter named "Hibernate foundation use technology", then show the approximate flow of developing application with Hibernate. Afterwards introduced optimizes the Hibernate application performance each method, like selection appropriate query strategy and transaction isolation rank, as well as using version check and Hibernate second level of cache.At the end of the thesis, introducing the design and the implementation of shopping website based on the Hibernate. The website overall design make use of the Struts frame, the persistence layer implementation make use of the Hibernate frame. During the process of developing website show the way integrating Hibernate to the Struts frame, mapping java object to relationship database and operating persistent object with Hibernate API.
Keywords/Search Tags:persistence layer, object Persistence, ORM, Hibernate
PDF Full Text Request
Related items